def event_notify(self, event):
if event.name not in self.available_events:<EOL><INDENT>return<EOL><DEDENT>message = json.dumps({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:data>': event.as_event_description(),<EOL>})<EOL>for subscriber in self.available_events[event.name]['<STR_LIT>']:<EOL><INDENT>try:<EOL><INDENT>subscriber.write_message(message)<EOL><DEDENT>except tornado.websocket.WebSocketClosedError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Notify all subscribers of an event.

event -- the event that occurred