Remove obsolete comments

This commit is contained in:
Kristóf Tóth 2018-03-14 17:07:39 +01:00
parent 3b7c8daafe
commit c329a71867

View File

@ -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) {