My existing application doesn't receive data if the clients are on different server when I add these lines.
var mongoAdapter = require('socket.io-adapter-mongo');
io.adapter(mongoAdapter(dbURI));
I am using mongoose to manage the database. Is there any other code that needs to be added on a chat application. Like do I need to change my socket.on and socket.emit methods to something else?
My existing application doesn't receive data if the clients are on different server when I add these lines.
I am using mongoose to manage the database. Is there any other code that needs to be added on a chat application. Like do I need to change my socket.on and socket.emit methods to something else?