igrigorik / em-websocket

EventMachine based WebSocket server
http://www.igvita.com/2009/12/22/ruby-websockets-tcp-for-the-browser/
MIT License
1.69k stars 187 forks source link

Does onmessage, onopen, onclose, etc.. execute on a new thread? #135

Closed NicholasMata closed 12 months ago

NicholasMata commented 9 years ago

I am wondering if the code that gets executed in onmessage, onopen, etc runs on a new thread every time. I know it isn't an issue was just wondering and didn't know where to post

ikataitsev commented 9 years ago

No, it doesn't. Code passed to mentioned callbacks is run on the same thread.