MCPcopy
hub / github.com/deepstreamIO/deepstream.io / unsubscribe

Function unsubscribe

test-e2e/framework/presence.ts:62–70  ·  view source on GitHub ↗
(clientExpression: string, user?: string)

Source from the content-addressed store, hash-verified

60 },
61
62 unsubscribe (clientExpression: string, user?: string) {
63 clientHandler.getClients(clientExpression).forEach((client) => {
64 if (user) {
65 client.client.presence.unsubscribe(user)
66 } else {
67 client.client.presence.unsubscribe()
68 }
69 })
70 },
71
72 getAll (clientExpression: string, users?: string[]) {
73 clientHandler.getClients(clientExpression).forEach((client) => {

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
unsubscribeMethod · 0.65

Tested by

no test coverage detected