added websocket support for client