MCPcopy
hub / github.com/socketio/socket.io / encodeOptions

Function encodeOptions

packages/socket.io-adapter/lib/cluster-adapter.ts:157–163  ·  view source on GitHub ↗
(opts: BroadcastOptions)

Source from the content-addressed store, hash-verified

155}
156
157function encodeOptions(opts: BroadcastOptions) {
158 return {
159 rooms: [...opts.rooms],
160 except: [...opts.except],
161 flags: opts.flags,
162 };
163}
164
165function decodeOptions(opts): BroadcastOptions {
166 return {

Callers 6

broadcastFunction · 0.85
broadcastWithAckFunction · 0.85
addSocketsFunction · 0.85
delSocketsFunction · 0.85
disconnectSocketsFunction · 0.85
fetchSocketsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected