Create a room with conversation_id and make users to subscribe to that room, so that you can emit a private message to that room it by, client ------ var socket = io.connect( 'http://ip:port' ); socket.emit( 'subscribe' , conversation_id); socket.emit( 'send message' , { room : conversation_id, message : "Some message" }); socket.on( 'conversation private post' , function (data) { //display data.message }); Server ------- socket.on( 'subscribe' , function (room) { console.log( 'joining room' , room); socket.join(room); }); socket.on( 'send message' , function (data) { console.log( 'sending room post' , data.room); socket.broadcast.to(data.room).emit( 'conversation private post' , { message : data.message }); }); Here is my Stackoverflow answer : http : //stackoverflow.com/a/23623724/453486
Comments
We are using Ruby-2.1.0 and I tried to add two gem sources url, but it is working with single url only.
We've native gems(built) of Slackware OS in https://gemfury/io23232/something.. already defaulf https://rubygems is there in gem sources list
I've added my gem sources..
for example,..
gem install kgio --source https://gemfury/soemthien..
getting error, if i removed default(rubygems.org), the gem will be installed//