Websocket client for loader