Base websocket handler interface