基于Node.js+express的Websock即时通信
一、首先安装依赖:
"express": "^4.17.1",
"express-ws": "^5.0.2",
"nodemon": "^2.0.15"
二、在app.js中 如下引入
// 引入框架
const express = require('express')
const app = express();
const expressWs = require('express-ws')
const port = 8080
const websocket = r...
原创
2021-11-21 11:37:40 ·
2108 阅读 ·
0 评论