1. 首页
  2. 数据库
  3. 其它
  4. light ws:带有light json的websocket 源码

light ws:带有light json的websocket 源码

上传者: 2021-04-26 04:27:01上传 ZIP文件 11.63KB 热度 22次
轻型 带有light-json的websocket 安装 npm install light-ws 用法 节点JS const path = require ( 'path' ) ; const http = require ( 'http' ) ; const express = require ( 'express' ) ; const LWS = require ( 'light-ws' ) var app = express ( ) ; var server = http . createServer ( app ) ; server . listen ( 8080 , '0.0.0.0' , function ( ) { console . log ( 'start server port 8080!' ) } ) var ws = new LWS ( { 'user
下载地址
用户评论