文件名称:aud-socket-server
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-07 05:49:49
JavaScript
aud-socket-server && aud-socket-client 安装 npm i aud-socket-server npm i aud-socket-client 用 var socketServer = require('aud-socket-server').server('test-service', 8124);// namespace port socketServer.use('methodName', function(req, res) { console.log(req); //'test from client' res.send(null, 'test from server'); }); var socketClient = require('aud-socket-client').client('test-service', [
【文件预览】:
aud-socket-server-master
----lib()
--------socket.server.js(5KB)
--------socket.common.js(317B)
----LICENSE(733B)
----README.md(755B)
----.gitignore(12B)
----package.json(539B)