mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add websocket warning/error
This commit is contained in:
parent
3a8174cc22
commit
fdce9e2539
@ -214,9 +214,14 @@
|
||||
};
|
||||
wsInternal.onerror = function (errorEvent) {
|
||||
console.error('WebSocket Error', errorEvent);
|
||||
warn('WebSockets are required for Crafty to work. This websocket connection has been closed. Are you using a reverse proxy? See our'+
|
||||
' documentation for details')
|
||||
|
||||
};
|
||||
wsInternal.onclose = function (closeEvent) {
|
||||
console.log('Closed WebSocket', closeEvent);
|
||||
warn('WebSockets are required for Crafty to work. This websocket connection has been closed. Are you using a reverse proxy? See our'+
|
||||
' documentation for details')
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user