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

Method leave

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

Source from the content-addressed store, hash-verified

95 }
96
97 leave(room: string) {
98 const controller = this.controllers.get(room)
99
100 if (controller) {
101 controller.abort()
102 this.controllers.delete(room)
103 logger.info(`Left room: ${room}`)
104 } else {
105 logger.warn(`Attempted to leave room "${room}" but no active controller found`)
106 }
107 }
108
109 private createHeartbeat(room: string) {
110 const heartbeat = {

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected