It is useful for socket.io custom messaging
This method allows you set custom socket listeners anytime, during a live session.
connection.setCustomSocketEvent('abcdef'); connection.socket.on('abcdef', function(message) { alert(message); }); connection.socket.emit('abcdef', 'My userid is: ' + connection.userid);
Alternative API: socketCustomEvent