Config und logging eingebaut
This commit is contained in:
parent
4478286a30
commit
5f6915bd89
1 changed files with 4 additions and 0 deletions
|
|
@ -12,4 +12,8 @@ ws.onmessage = function (messageEvent) {
|
||||||
|
|
||||||
ws.onclose = function (closeEvent) {
|
ws.onclose = function (closeEvent) {
|
||||||
console.log("Websocket wurde geschlossen")
|
console.log("Websocket wurde geschlossen")
|
||||||
|
}
|
||||||
|
|
||||||
|
ws.onerror = function (errorEvent) {
|
||||||
|
console.error("Websocket-Fehler: " , errorEvent)
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue