# websocket-root **Repository Path**: yangxsa/websocket-root ## Basic Information - **Project Name**: websocket-root - **Description**: 基于Tio的websocket server - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # websocket-root 基于Tio写的基本websocket Server 实现了定时推送加普通推送 客户端用的js var ws = new WebSocket("ws://192.168.0.169:9326"); ws.onopen = function (event) { console.log(event) }; ws.onmessage=function (event) { console.log("收到消息:"+event.data); }; ws.onclose=function (event) { console.log(event.data); }; ws.onerror=function (event,e) { console.log(event.data); };