implemented Socket.io message to event wrapper