Looks like the socket.io API. You should post your question on that list:
https://groups.google.com/forum/#!forum/socket.io

(For those not familiar with Socket.io, this emit method is not an
instance of EventEmitter, though there is an EE used internally.)

Daniel Shaw
@dshaw


On Wed, May 23, 2012 at 1:47 PM, Tim Caswell <[email protected]> wrote:
> What API is this?  Does `socket.broadcast.to(Id) return a node
> EventEmitter()?  Node EventEmitter don't write anything to sockets on their
> own.  I'm afraid we're going to need more information to be of any
> assistance.
>
>
> On Wed, May 23, 2012 at 6:16 AM, Veeru <[email protected]> wrote:
>>
>> I am trying to emit an event from the nodeJS, as following
>>
>> socket.broadcast.to(Id).emit(NEW_SESSION,response_details_json.responder);
>>
>> But this event has been emitted twice by the NodeJs server. In log nodeJS
>> shows like' writing to socket:' twice. Any idea why this is happening?
>>
>> --
>> 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
>
>
> --
> 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

-- 
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

Reply via email to