Testing out websocket client and server



Websocket server 

To spin up a server that serve ws request, you can use the following code




Run "dep init"

Run "dep ensure -update"


Websocket client

npm install -g wscat

wscat -c ws://localhost:8002

You will see that you're connected. 


Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type