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
By using the `useSockJs` option like below, DDP connection will use [SockJs](https://github.com/sockjs) protocol to establish the WebSocket connection.
185
+
186
+
```js
187
+
var ddpClient =newDDPClient({ useSockJs:true });
188
+
```
189
+
190
+
Meteor server uses SockJs to implement it's DDP server. With this mode, we can get the benefits provided by [meteorhacks:cluster](https://github.com/meteorhacks/cluster). Some of those are load balancing and service discovery.
191
+
192
+
* For load balancing you don't need to anything.
193
+
* For service discovery, just use the `path` option to identify the service you are referring to.
194
+
195
+
> With this mode, `path` option has a special meaning. So, thing twice before using `path` option when you are using this option.
196
+
176
197
Unimplemented Features
177
198
====
178
199
The node DDP client does not implement ordered collections, something that while in the DDP spec has not been implemented in Meteor yet.
0 commit comments