Just trigger on websocket messages.
Document parameters.
JS cleanup