Added base websocket handler