JsCommunity / json-rpc-peer

JSON-RPC 2 transport-agnostic library
13 stars 3 forks source link

Need to let pass more context with exec(message) #47

Closed yuvalt closed 6 years ago

yuvalt commented 6 years ago

When calling exec(message) I need to pass user information that was extracted from the ws header when it was connected. I think there should be a way to pass an optional object as a second parameter to exec() which will be added as a sub-object to the message object passed to onMessage(message)

julien-f commented 6 years ago

Thanks for your report, published as 0.15.