Add composer dependency to web socket server

* Refactoring to work with websocket server/protocol libraries