Provided an event interface for ws events 'on_... (..)'
+ code cleaning
code cleaning