Implement tunnel onerror() for WebSocket.
This commit is contained in:
1 parent
52d3fa8748
commit
862ad8760a
1 file changed
+7
@@ -548,6 +548,13 @@ Guacamole.WebSocketTunnel = function(tunnelURL) {
|
||||
currentState = STATE_CONNECTED;
|
||||
};
|
||||
|
||||
socket.onerror = function(event) {
|
||||
|
||||
// Call error handler
|
||||
if (tunnel.onerror) tunnel.onerror(event.data);
|
||||
|
||||
};
|
||||
|
||||
socket.onmessage = function(event) {
|
||||
|
||||
var message = event.data;
|
||||
|
||||
Reference in new issue
Block a user