MCPcopy Create free account
hub / github.com/dailydotdev/apps / close

Method close

packages/shared/src/lib/liveRoom/connection.ts:147–160  ·  view source on GitHub ↗
(code = 1000, reason = 'Client closed')

Source from the content-addressed store, hash-verified

145 }
146
147 close(code = 1000, reason = 'Client closed'): void {
148 this.manuallyClosed = true;
149 this.stopReconnect();
150 if (!this.socket) {
151 return;
152 }
153 this.stopHeartbeat();
154 try {
155 this.socket.close(code, reason);
156 } catch {
157 // ignore
158 }
159 this.socket = null;
160 }
161
162 get resumeToken(): string | null {
163 return this.latestResumeToken;

Callers 12

LiveRoomProviderFunction · 0.95
useLiveRoomAudioLevelFunction · 0.80
AuthOptionsInnerFunction · 0.80
handleLoginMessageFunction · 0.80
onProviderClickFunction · 0.80
broadcastMessageFunction · 0.80
startHeartbeatMethod · 0.80
InnerFunnelRegistrationFunction · 0.80
useLoginFunction · 0.80
ErrorPageFunction · 0.80
CallbackPageFunction · 0.80
closeWindowFunction · 0.80

Calls 2

stopReconnectMethod · 0.95
stopHeartbeatMethod · 0.95

Tested by

no test coverage detected