wscat是一个用来连接websocket的命令行工具,nodejs开发的
npm config set registry http://registry.npm.taobao.org/
npm install -g wscat --registry https://registry.npm.taobao.org
$ wscat -c ws://echo.websocket.org
connected (press CTRL+C to quit)
> hi there
< hi there
> are you a happy parrot?
< are you a happy parrot?