added data field to notifications
added on() to websocket