MCPcopy Create free account
hub / github.com/tiann/hapi / buildSocketIoExtraHeaderOptions

Function buildSocketIoExtraHeaderOptions

cli/src/api/hubExtraHeaders.ts:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10export function buildSocketIoExtraHeaderOptions(): {
11 extraHeaders?: Record<string, string>
12} {
13 if (Object.keys(configuration.extraHeaders).length === 0) {
14 return {}
15 }
16
17 return {
18 extraHeaders: { ...configuration.extraHeaders }
19 }
20}

Callers 3

connectMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected