MCPcopy Create free account
hub / github.com/CommE2E/comm / forceCloseSocket

Method forceCloseSocket

lib/socket/socket.react.js:241–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 forceCloseSocket() {
242 this.stopPing();
243 const { status } = this.props.connection;
244 if (status !== 'forcedDisconnecting' && status !== 'disconnected') {
245 this.props.dispatch({
246 type: updateConnectionStatusActionType,
247 payload: {
248 status: 'forcedDisconnecting',
249 keyserverID: this.props.keyserverID,
250 },
251 });
252 }
253 this.finishClosingSocket();
254 }
255
256 finishClosingSocket(receivedResponseTo?: ?number) {
257 const { inflightRequests } = this.state;

Callers 1

componentDidUpdateMethod · 0.95

Calls 2

stopPingMethod · 0.95
finishClosingSocketMethod · 0.95

Tested by

no test coverage detected