Chronicling my journey and discoveries in cutting-edge software development. Here, I share practical knowledge and solutions, focusing on Ruby on Rails, Node.js, and JavaScript, alongside explorations into Kubernetes, distributed systems, and latest web technologies.
Thanks for sharing. If you are looking Ruby on Rails in India then Cryptex Solutions is the one of the most reputed company in India. We customize canavas LMS, Integrate bitcoin payment gateway and many more. For more details contact us at: info@cryptextechnologies.com
I got this error while installing Rest client perl module $ HOME=/tmp /home/perl/5.10/bin/cpanm REST::Client ! Finding REST::Client on cpanmetadb failed. ! cannot open file '/tmp/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz': No such file or directory opening compressed index ! Couldn't find module or a distribution REST::Client Solution: The problem is because of "LWP::Protocol::https" module. Removing the directory worked for me. $ cd /perl_installed_path/perl/5.10/lib/site_perl/5.10.1 $ rm –rf LWP* or try with option "--no-lwp" cpanm REST::Client --no-lwp
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