add customized encode/decode protocol for socket.io client