lklepner / socket.io-adapter-mongo

MIT License
11 stars 8 forks source link

Issue - 1 #8

Closed SL-A-SH closed 6 years ago

SL-A-SH commented 6 years ago

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?