reading relay state via WebSocket