跳转至

Node.js

Node.js

node --version

node --version

PowerShell
1
2
PS C:\Users\eric> node --version
v22.1.0

ws: a Node.js WebSocket library

npm install ws

Text Only
1
npm install ws

results

PowerShell
1
2
3
PS D:\work\qt_2024_work\ModernQt\codes\QML\websocket\01\ws_server> npm install ws

added 1 package in 3s

node server.js

PowerShell
1
2
PS D:\work\qt_2024_work\ModernQt\codes\QML\websocket\01\ws_server> node server.js
listening on port 3000