Closed dfischer closed 8 years ago
Hi @dfischer,
If you use Asteroid in an environment without native WebSocket implementation, you can use an external module, like ws.
For example:
import {createClass} from "asteroid";
import ws from "ws";
const Asteroid = createClass();
const asteroid = new Asteroid({
endpoint: "ws://localhost:3000/websocket",
SocketConstructor: ws
});
Wonderful, thanks.
Trying readme example and I'm getting
ReferenceError: WebSocket is not defined app/bot/node_modules/asteroid/lib/base-mixins/ddp.js:46:67)