dariocravero / padrino-websockets

Agnostic websockets support for Padrino
MIT License
14 stars 9 forks source link

Fixed readme example. Fixes #9. #10

Closed jorgefuertes closed 1 year ago

jorgefuertes commented 8 years ago

This example works out of the box.

jorgefuertes commented 8 years ago

Solved an exception showing a non existent exception at base-event-manager.rb.

dariocravero commented 8 years ago

Hey @jorgefuertes, thanks for your PR and sorry I couldn't look at this before; can you elaborate with an example? what's the value of e in your failing case?

jorgefuertes commented 8 years ago

Err... not sure if I'm totally wrong but, none, no exception at 'e' var at that point, can't be possible because its not the rescue block, so just try to log it raises a real exception.

Let me try to explain it better, ok, event is nil, not sure why, maybe a routing problem while I was doing tests o maybe cause I've sent a malformed message. It comes througth the if event.nil? and tries to log a non existent exception at undefined var 'e'.