MCPcopy
hub / github.com/upstash/jstack / join

Method join

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

Source from the content-addressed store, hash-verified

84 }
85
86 async join(room: string): Promise<void> {
87 this.room = room
88 logger.info(`Socket trying to join room: "${room}".`)
89 await this.subscribe(room)
90 .catch((error) => {
91 logger.error(`Subscription error for room ${room}:`, error)
92 })
93 .then(() => logger.success(`Joined room: ${room}`))
94 .then(() => this.createHeartbeat(room))
95 }
96
97 leave(room: string) {
98 const controller = this.controllers.get(room)

Callers 15

rehypeParseCodeBlocksFunction · 0.80
PageFunction · 0.80
splitMdxByHeadingsFunction · 0.80
getFunction · 0.80
dynamicFunction · 0.80
handleSchemaMismatchMethod · 0.80
handleEventMethod · 0.80
mainFunction · 0.80
constants.tsFile · 0.80
addPackageDependencyFunction · 0.80

Calls 2

subscribeMethod · 0.95
createHeartbeatMethod · 0.95

Tested by

no test coverage detected