Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 226 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 226 Bytes

基于 WebSocket 封装,添加断线重连功能

Examples

const socket = new EnhanceWebSocket("ws://121.40.165.18:8800");
socket.send("hello world")
socket.onmessage((event)=>{console.log(event)})