Implement ac-typescript to use websocket