News for hackers. Stuff that matters.
Re:Introducing NowJS or "How to make a chat server in 12 lin... by moe on Saturday March 12, 2011 @09:30AM (#2316800)
What about errors and exceptions? Will they propagate to the calling side?
Re:Introducing NowJS or "How to make a chat server in 12 lin... by ericz on Saturday March 12, 2011 @12:37PM (#2317088)
In the typical node pattern, errors should be sent as part of the callback for asynchronous IO. For exceptions, a "throw" statement will not be automatically propagated to the other client, best practice is to catch the errors and call a client side function in that case. Exception handling will be improved in the future.