xiyanma / xiyanma.github.ioLinks

这是一个Socket请求响应处理模块。构造函数SocketManager模仿浏览器的XMLHttpRequest对象,内部集成发送请求、监听事件(success,error,timeout)、断开连接、中止响应等方法。管理实例内部消息列表,实现请求消息和响应消息一一对应,以及异常处理,响应结果处理等功能。解决了WebSocket并发消息时响应结果难以追踪的问题。调用体验友好,与fetch请求使用方法类似。文档地址在这里:https://xiyanma.github.io/
24Updated last year

Alternatives and similar repositories for xiyanma.github.io

Users that are interested in xiyanma.github.io are comparing it to the libraries listed below

Sorting: