Gregivy / simpleddp

An easy to use DDP client library
MIT License
165 stars 19 forks source link

Why isomorphic-ws? #14

Closed leprekon91 closed 5 years ago

leprekon91 commented 5 years ago

Why not use the regular ws package instead? I can't seem to find out what the isomorphic package does differently anywhere, and you use the regular ws in all of the tests. Does it matter what I use? And if not can I use other socket interfaces like uWebSocket?

Gregivy commented 5 years ago

Isomorphic package does nothing more than in case of a browser it uses native WebSocket and in case of node.js it uses ws package. It does not matter what you use the only restriction is that your web socket implementation should correspond with https://developer.mozilla.org/en-US/docs/Web/API/WebSocket.

uWebSockets.js is a server not a client. SimpleDDP is a client for Meteor.js server, it is possible to use Meteor.js with uWebSockets.js but not straightforward, anyway this doesn't affect SimpleDDP.

leprekon91 commented 5 years ago

Thanks!