pocesar / node-jsonrpc2

JSON-RPC 2.0 server and client library, with HTTP (with Websocket support) and TCP endpoints
Other
105 stars 41 forks source link

[Enhancement] Update documentation for synchronous / callback / promise style implementation of the authorization handler #33

Open colceagus opened 8 years ago

colceagus commented 8 years ago

The authHandler now is agnostic of the synchronous / callback / promise implementation styles. Documentation only provides examples for the synchronous parts. Make visible the fact that the handler can be implemented using a promise or a callback.