As you can see, 'upgrade' event listener receives `socket` object.
Try doing: socket.write('something').
Cheers,
Fedor.
On Sat, Jan 5, 2013 at 10:11 PM, kyogron <[email protected]> wrote:
> Hi,
>
> I want to implement a WebSocket server.
>
> I am currently at the beginnings handling the HTTP Protocol upgrade
> handshake.
>
> The handshake requires a response for security reasons unfortunately the
> "upgrade" event does not provide any response object or at least I cannot
> find one.
>
> Is there an other way to response as a listener of the Event:
> 'upgrade'<http://nodejs.org/api/http.html#http_event_upgrade>
> ?
>
> Regards
>
> --
> 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