How to stop y-websocket server?

i start y-websocket server by the command below

PORT=9000 npx y-websocket

how can i close the server or restart it?

can anybody help me?


just find yur process id and killed it.

lsof -i 9000 or ps aux|grep "npx"
kill id
1 Like

thank you very much , that’s a big help