From 0d2a1e59322637e239831638b6483fbf5b22832a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 7 Feb 2018 22:52:16 +0100 Subject: [PATCH] onopen logging message --- platypush/backend/http/static/js/application.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platypush/backend/http/static/js/application.js b/platypush/backend/http/static/js/application.js index 2fd3084c33..57d13c602a 100644 --- a/platypush/backend/http/static/js/application.js +++ b/platypush/backend/http/static/js/application.js @@ -17,6 +17,10 @@ $(document).ready(function() { } }; + websocket.onopen = function(event) { + console.log('Websocket connection successful'); + }; + websocket.onerror = function(event) { console.error(event); };