¡@

Home 

javascript Programming Glossary: socket.on

Send response to all clients except sender (Socket.io)

http://stackoverflow.com/questions/10058226/send-response-to-all-clients-except-sender-socket-io

'response' data To receive from clients you use socket.on 'cursor' function data ... How can I combine the two so that.. message to all users except the one sending the message. socket.on 'cursor' function data io.sockets.emit 'response' data Do I..

V8 Internals - Handling of Anonymous Functions

http://stackoverflow.com/questions/10160275/v8-internals-handling-of-anonymous-functions

unrelated stuff io.sockets.on 'connection' function socket socket.on 'action1' function data logic for action1 socket.on 'action2'.. socket socket.on 'action1' function data logic for action1 socket.on 'action2' function data logic for action2 socket.on 'disconnect'.. socket.on 'action2' function data logic for action2 socket.on 'disconnect' function logic for disconnect The overall answer..

Sync JS time between multiple devices

http://stackoverflow.com/questions/10585910/sync-js-time-between-multiple-devices

.post ' next' var socket io.connect 'http localhost 70' socket.on 'slide' function slide '#slide' curslide .animate left 700 400..

Socket.io + PhoneGap

http://stackoverflow.com/questions/10738073/socket-io-phonegap

socket.io.js script script var socket io.connect 'HOST' socket.on 'news' function data socket.emit 'my other event' my 'data'.. function socket socket.emit 'news' hello 'world' socket.on 'my other event' function data console.log data The HOST you..

How to use redis PUBLISH/SUBSCRIBE with nodejs to notify clients when data values change?

http://stackoverflow.com/questions/4441798/how-to-use-redis-publish-subscribe-with-nodejs-to-notify-clients-when-data-value

on port d app.address .port const socket io.listen app socket.on 'connection' function client const subscribe redis.createClient.. false transports 'xhr polling' var content '#content' socket.on 'connect' function socket.on 'message' function message content.prepend.. var content '#content' socket.on 'connect' function socket.on 'message' function message content.prepend message ' br ' ..

Update all clients using Socket.io?

http://stackoverflow.com/questions/7352164/update-all-clients-using-socket-io

function socket clients socket.emit 'users_count' clients socket.on 'disconnect' function clients Clientside JavaScript var socket.. JavaScript var socket io.connect 'http localhost' socket.on 'connect' function socket.on 'users_count' function data '#client_count'.. io.connect 'http localhost' socket.on 'connect' function socket.on 'users_count' function data '#client_count' .text data console.log..

Node.js, multi-threading and Socket.io

http://stackoverflow.com/questions/8563401/node-js-multi-threading-and-socket-io

the work here io.sockets.on 'connection' function socket socket.on 'chat' function data socket.broadcast.emit 'chat' data Thoughts.. the work here io.sockets.on 'connection' function socket socket.on 'chat' function data socket.broadcast.emit 'chat' data Another..