Closed anshv closed 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
hi @anshv,
can you please check if you are requiring the correct npm module? Our module is ddp.js, not ddp.
npm
ddp.js
ddp
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