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
@@ -145,15 +153,17 @@ Event data are serialized and deserialized using `JSON.stringify` and `JSON.pars
145
153
146
154
```js
147
155
// BSON can serialize / deserialize `Date` values.
148
-
constbson=require('bson')
149
-
150
-
app.configure(sync({
151
-
uri:'redis://localhost:6379',
152
-
// Replies will be sent to callbacks as Buffers instead of Strings for bson.deserialize to work.
153
-
redisOptions: { return_buffers:true },
154
-
serialize:bson.serialize,
155
-
deserialize:bson.deserialize,
156
-
}));
156
+
constbson=require('bson');
157
+
158
+
app.configure(
159
+
sync({
160
+
uri:'redis://localhost:6379',
161
+
// Replies will be sent to callbacks as Buffers instead of Strings for bson.deserialize to work.
162
+
redisOptions: { return_buffers:true },
163
+
serialize:bson.serialize,
164
+
deserialize:bson.deserialize,
165
+
})
166
+
);
157
167
```
158
168
159
169
> `Redis` and `AMQP` can support binary serialization / deserialization (i.e. `Buffer` data). `NATS` currently does not support custom serialization / deserialization/
0 commit comments