Base for websocket.
Encode info now auto-updates with websocket.