I want to send some intro links to co-workers and I think your example
would be a nice prequel to socket.io's example/chat.
On the other hand, I want to minimize the number of questions I get. :)
Hence:
A question though. In client.html:
>> What calls the callback in: socket.emit('emit_msg", txt, function (data)
>> {...});
>>
>
> The callback is called when the server has successfully received the data.
> There is no custom code to write for that on the server.js file.
>
I only got the message below to display in client.html
socket.emit('emit_msg', txt, function (data){
console.log('Emit Broadcast msg', data);
});
when I changed server.js to
socket.on('emit_msg', function (msg, cb) {
cb(false);
I wanted the callback param to be err-ish.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en