nl_tokens: Represents a [ JSON - RPC 2 . 0 ] ( http : // www . jsonrpc . org / specification ) request or response ; used by { @link RPC#send } .
pl_tokens: function Message ( spec ) { if ( ! ( this instanceof Message ) ) { return new Message ( spec ) } this . jsonrpc = '2.0' if ( Message . isRequest ( spec ) ) { this . id = spec . id || Message . createID ( ) this . method = spec . method this . params = spec . params } else if ( Message . isResponse ( spec ) ) { this . id = spec . id this . result = merge ( { } , spec . result ) if ( spec . error ) { this . error = { code : - 32603 , message : spec . error . message } } } else { throw new <mask> ( 'Invalid message specification' ) } }