You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add option to allow usage of custom parser (#471)
This PR adds a new parser option to the adapter constructor to allow
setting a custom parser to use, defaulting to using notepack.io. This
would allow someone to use a different msgpack library if they wanted,
or even an entirely different protocol altogether (e.g. protobuf).
Related:
- #462
- #469
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,7 @@ The following options are allowed:
194
194
195
195
-`key`: the name of the key to pub/sub events on as prefix (`socket.io`)
196
196
-`requestsTimeout`: optional, after this timeout the adapter will stop waiting from responses to request (`5000ms`)
197
+
-`parser`: optional, parser to use for encoding and decoding messages passed through Redis ([`notepack.io`](https://www.npmjs.com/package/notepack.io))
197
198
198
199
### RedisAdapter
199
200
@@ -205,6 +206,7 @@ that a regular `Adapter` does not
0 commit comments