mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-05-22 12:05:46 +08:00
16 lines
301 B
TypeScript
16 lines
301 B
TypeScript
import * as WebSocket from 'ws';
|
|
import { Server as WebSocketServer } from 'ws';
|
|
import {WsConnection} from "./connection"
|
|
|
|
enum WsServerStatus {
|
|
Initializing,
|
|
Inited,
|
|
Closing,
|
|
Closed,
|
|
}
|
|
|
|
export class WsServer {
|
|
private _id2conn : {[connId : string] : WsConnection | undefined}
|
|
}
|
|
|