mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 22:01:56 +00:00
Remove obsolete comments
This commit is contained in:
parent
3b7c8daafe
commit
c329a71867
@ -25,9 +25,6 @@ export class WebSocketService {
|
||||
return;
|
||||
}
|
||||
|
||||
// Using share() causes a single WebSocket to be created when the first
|
||||
// observer subscribes. This socket is shared with subsequent observers
|
||||
// and closed when the observer count falls to zero.
|
||||
const wsproto = (location.protocol === 'https:') ? 'wss://' : 'ws://';
|
||||
this.downlink = jsonWebsocketConnect(
|
||||
wsproto + window.location.host + '/ws',
|
||||
@ -44,10 +41,6 @@ export class WebSocketService {
|
||||
}
|
||||
|
||||
public send(key: string, data?: any, trigger?: any): void {
|
||||
// If the WebSocket is not connected then the QueueingSubject will ensure
|
||||
// that messages are queued and delivered when the WebSocket reconnects.
|
||||
// A regular Subject can be used to discard messages sent when the WebSocket
|
||||
// is disconnected.
|
||||
// TODO: do this nicer?
|
||||
const message = {'key': key};
|
||||
if (data) {
|
||||
|
Loading…
Reference in New Issue
Block a user