built a engine for html client. need to work on the Protocol of the socket.