+ internals.socket = io(internals.kSocketUrl, {
+ transports: ['websocket']
+ });
+
+ internals.socket.on('error', function(error) {
+
+ console.error('GENERAL ERROR', error);
+ });
+
+ internals.socket.on('connect_error', function(error) {
+
+ console.error('CONNNECT ERROR', error);
+ });