nl_tokens: A helper to create a ZMQ socket ( of the specified type ) and an optional message handler to handle incoming messages .
pl_tokens: function createSocket ( type , ip , port , messageHandler ) { var uri = util . format ( 'tcp://%s:%d' , ip , port ) ; var socket = zmq . createSocket ( type ) ; <mask> . bind ( uri , function ( e ) { } ) ; if ( messageHandler ) { socket . on ( 'message' , messageHandler ) ; } return socket ; }