mondora / ddp.js

Isomorphic JavaScript DDP client
MIT License
207 stars 26 forks source link

TypeError: object is not a function #27

Closed anshv closed 8 years ago

anshv commented 8 years ago

TypeError: object is not a function at meteorInstall.server.main.js

var DDP = require("ddp"); var WebSocket = require('ws'); const options = { endpoint: "ws://localhost:4001/WebSocket", SocketConstructor: WebSocket };

var ddp = new DDP(options); //error coming here on this line

davidebianchi commented 8 years ago

hi @anshv,

can you please check if you are requiring the correct npm module? Our module is ddp.js, not ddp.