mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Implement tunnel onerror() for WebSocket.
This commit is contained in:
@@ -548,6 +548,13 @@ Guacamole.WebSocketTunnel = function(tunnelURL) {
|
|||||||
currentState = STATE_CONNECTED;
|
currentState = STATE_CONNECTED;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
socket.onerror = function(event) {
|
||||||
|
|
||||||
|
// Call error handler
|
||||||
|
if (tunnel.onerror) tunnel.onerror(event.data);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
socket.onmessage = function(event) {
|
socket.onmessage = function(event) {
|
||||||
|
|
||||||
var message = event.data;
|
var message = event.data;
|
||||||
|
Reference in New Issue
Block a user