first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// const { WebSocketServer } = require("ws");
//
// const wss = new WebSocketServer({ port: 8080 });
//
// wss.on('connection', function connection(ws) {
// console.log("客户端连接建立成功: ")
// ws.on('message', function message(data) {
// console.log("收到客户端发送的消息")
// wss.clients.forEach(function each(client) {
// // 排除我自己 和 掉线的客户端
// if (client !== ws) {
// client.send(data.toString());
// }
// });
// });
// });