MCPcopy Index your code
hub / github.com/upstash/jstack / unsubscribe

Method unsubscribe

packages/jstack-shared/src/socket.ts:219–228  ·  view source on GitHub ↗
(room: string)

Source from the content-addressed store, hash-verified

217 }
218
219 private async unsubscribe(room: string) {
220 const controller = this.controllers.get(room)
221 if (controller) {
222 controller.abort()
223 this.controllers.delete(room)
224 logger.info(`Unsubscribed from room: ${room}`)
225 } else {
226 logger.warn(`No active subscription found for room: ${room}`)
227 }
228 }
229}
230
231type Schema = z.ZodSchema | undefined

Callers 1

createHeartbeatMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected