onopen logging message

This commit is contained in:
Fabio Manganiello 2018-02-07 22:52:16 +01:00
parent b675f631e9
commit 0d2a1e5932

View file

@ -17,6 +17,10 @@ $(document).ready(function() {
}
};
websocket.onopen = function(event) {
console.log('Websocket connection successful');
};
websocket.onerror = function(event) {
console.error(event);
};