nl_tokens: Helper to write out a message to as outgoing message data .
pl_tokens: function writeMessage ( message , socket , signer ) { var header = JSON . stringify ( message . header ) ; var parentHeader = JSON . stringify ( message . parentHeader ) ; var metadata = JSON . stringify ( message . metadata ) ; var <mask> = JSON . stringify ( message . content ) ; var signature = signer . sign ( [ header , parentHeader , metadata , content ] ) ; var socketData = [ message . identities , '<IDS|MSG>' , signature , header , parentHeader , metadata , content ] ; socket . send ( socketData ) ; }