mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
do not show errors of broken websocket connections (are already shown by api/websocket.js)
This commit is contained in:
parent
2fd2644f91
commit
109b939373
1 changed files with 1 additions and 5 deletions
|
@ -35,7 +35,7 @@ class SimulatorDataDataManager {
|
|||
if (this._sockets[identifier] != null)
|
||||
return; // already open?
|
||||
|
||||
this._sockets[identifier] = new WebsocketAPI(endpoint, { onOpen: (event) => this.onOpen(event, identifier, true), onClose: (event) => this.onClose(event, identifier), onMessage: (event) => this.onMessage(event, identifier), onError: (error) => this.onError(error, identifier) });
|
||||
this._sockets[identifier] = new WebsocketAPI(endpoint, { onOpen: (event) => this.onOpen(event, identifier, true), onClose: (event) => this.onClose(event, identifier), onMessage: (event) => this.onMessage(event, identifier) });
|
||||
}
|
||||
|
||||
update(endpoint, identifier) {
|
||||
|
@ -88,10 +88,6 @@ class SimulatorDataDataManager {
|
|||
delete this._sockets[identifier];
|
||||
}
|
||||
|
||||
onError(error, identifier) {
|
||||
console.error('Error on ' + identifier + ':' + error);
|
||||
}
|
||||
|
||||
onMessage(event, identifier) {
|
||||
var msgs = this.bufferToMessageArray(event.data);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue