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

Method componentDidMount

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

Source from the content-addressed store, hash-verified

291 );
292
293 componentDidMount() {
294 if (this.props.detectUnsupervisedBackgroundRef) {
295 this.props.detectUnsupervisedBackgroundRef(
296 this.detectUnsupervisedBackground,
297 );
298 }
299 if (this.props.active) {
300 this.openSocket('connecting');
301 }
302 }
303
304 componentWillUnmount() {
305 this.closeSocket(false);

Callers

nothing calls this directly

Calls 1

openSocketMethod · 0.95

Tested by

no test coverage detected