79198803

Date: 2024-11-18 05:54:07
Score: 0.5
Natty:
Report link
export class WebsocketService {
    private socket$: WebSocketSubject<any>;

    disconnect() {
      this.socket$?.unsubscribe();
    }
}

this one worked for me. Ref: https://rxjs.dev/api/webSocket/webSocket

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: Tushar Roy