included the code from websocket to web project to reduce dep with other projects