Initial websockets implementation