Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hapijs/hapi
/ onRequest
Function
onRequest
test/transmit.js:401–405 ·
view source on GitHub ↗
(request, h)
Source
from the content-addressed store, hash-verified
399
400
const
team =
new
Teamwork.Team();
401
const
onRequest = (request, h) => {
402
403
request.events.once(
'disconnect'
, () => team.attend());
404
return
h.continue;
405
};
406
407
server.ext(
'onRequest'
, onRequest);
408
Callers
nothing calls this directly
Calls
1
once
Method · 0.65
Tested by
no test coverage detected