linux安装wscat

如果不行,请yum -y install update在执行以下操作

curl --silent --location https://rpm.nodesource.com/setup_12.x | bash

yum -y install nodejs
如果nodejs安装不上,请安装npm
linux下安装npm

npm install -g wscat

$ 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?

参考:wscat 安装踩坑

你可能感兴趣的:(笔记,wscat)