Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastify/fastify
/ wrapped
Function
wrapped
test/diagnostics-channel/async-error-handler.test.js:19–21 ·
view source on GitHub ↗
(msg)
Source
from the content-addressed store, hash-verified
17
18
function
subscribe (name, handler) {
19
const
wrapped = (msg) => {
20
if
(msg.request.server === fastify) handler(msg)
21
}
22
diagnostics.subscribe(name, wrapped)
23
t.after(() => diagnostics.unsubscribe(name, wrapped))
24
}
Callers
nothing calls this directly
Calls
1
handler
Function · 0.70
Tested by
no test coverage detected