added websocket apis for testing