On Wed, Apr 11, 2012 at 05:09:44PM -0700, sparky wrote:
> I'm working to create a simple chat demo that will send messages to flash 
> clients over a socket connection. I also need to be able to tell node to 
> send a message to all connected clients. Currently, I'm hitting the node 
> http server with a browser to test this.
> 
> I have the socket chat working, but when I hit the node http server, the 
> clients do not receive messages. I'm using 'broadcast()' to send messages 
> in both cases. I can see that the broadcast() function is being called in 
> both cases. Why is the "Hello from HTTP server" message not received by 
> clients?
> 
> // chat.js
> net = require('net');

Unrelated, but you forgot a "var" here, I think.

Apart from that, your code looks correct to me...

Attachment: pgpecD12wRoJ6.pgp
Description: PGP signature

Reply via email to