Add Websocket Infrastructure

Added websoket infrastructure with working test case. To refactor and clean it.