gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

Stop throwing unkown event type for valid events #60

Closed 3rd-Eden closed 13 years ago

3rd-Eden commented 13 years ago

The _handler throws unkown event errors if we do not attach a listener for the events. Listenen to the events should be optional not required.

This fix solves that issue.

gimite commented 13 years ago

Thanks for the fix. Pulled.