Add support to message endPoint

Add support of message endPoint for types : message, message JSON and event

(like in the Socket.io specification: https://github.com/LearnBoost/socket.io-spec)