ag-sockets:用于通过WebSockets进行通信的库-源码

上传者: 42103128 | 上传时间: 2021-02-26 12:06:03 | 文件大小: 131KB | 文件类型: ZIP
插座 通过WebSockets通信的库 安装 npm install ag-sockets npm install ws # peer dependency 用法 与使用 npm install uws import * as uws from 'uws' ; import { createServer } from 'ag-sockets' ; // ... const wsServer = createServer ( ... , { ws : uws , arrayBuffer : true } ) ; 设置插座 通用接口 // interfaces.ts import { SocketClient , SocketServer } from 'ag-sockets' ; export interface IExampleClient extends SocketClient {

文件下载

资源详情

[{"title":"( 46 个子文件 131KB ) ag-sockets:用于通过WebSockets进行通信的库-源码","children":[{"title":"ag-sockets-master","children":[{"title":"src","children":[{"title":"interfaces.ts <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"packet","children":[{"title":"binaryReader.ts <span style='color:#111;'> 5.96KB </span>","children":null,"spread":false},{"title":"packetHandler.ts <span style='color:#111;'> 15.78KB </span>","children":null,"spread":false},{"title":"packetCommon.ts <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"binaryWriter.ts <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"serverInterfaces.ts <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"browser.ts <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"utils.ts <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"clientSocket.ts <span style='color:#111;'> 8.99KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"utf8.ts <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"serverSocket.ts <span style='color:#111;'> 17.35KB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"config.js <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"demoClient.ts <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"demoServer.ts <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"demo.html <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"metadata.spec.ts <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"wsMock.ts <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"common.ts <span style='color:#111;'> 891B </span>","children":null,"spread":false},{"title":"packet.spec.ts <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"serverUtils.spec.ts <span style='color:#111;'> 333B </span>","children":null,"spread":false},{"title":"utils.spec.ts <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"utf8.spec.ts <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"readerWriter.spec.ts <span style='color:#111;'> 11.24KB </span>","children":null,"spread":false},{"title":"validate.spec.ts <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"client.spec.ts <span style='color:#111;'> 12.73KB </span>","children":null,"spread":false},{"title":"serverClient.spec.ts <span style='color:#111;'> 9.41KB </span>","children":null,"spread":false},{"title":"server.spec.ts <span style='color:#111;'> 21.15KB </span>","children":null,"spread":false},{"title":"debugPacket.spec.ts <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"binary.spec.ts <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false}],"spread":false},{"title":"method.ts <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"server.ts <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"serverUtils.ts <span style='color:#111;'> 4.89KB </span>","children":null,"spread":false},{"title":"validate.ts <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 151B </span>","children":null,"spread":false},{"title":"gulpfile.js <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'> 916B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"typings","children":[{"title":"chai.d.ts <span style='color:#111;'> 11.20KB </span>","children":null,"spread":false},{"title":"chai-as-promised.d.ts <span style='color:#111;'> 11.31KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 307.61KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明