摘要: const express = require('express'); const app = express(); const ws = require('ws').Server; const wss = new ws({port: 3001}); var sockets = []; wss.on('connection', function(ws) { ws.send('连接成功'... 阅读全文
posted @ 2018-02-05 16:14 鱿鱼须须 阅读(249) 评论(0) 推荐(0) 编辑