摘要:
import { EventEmitter } from 'eventemitter3'; class H5SSE extends EventEmitter 代码解析 通过eventemitter3源码学习Javascript设计模式:发布-订阅(观察者模式) 发布-订阅模式又叫观察者模式,它定义对 阅读全文
posted @ 2023-12-28 16:36
yoona-lin
阅读(99)
评论(0)
推荐(0)
摘要:
SSE(Server-Sent Events)是一种在客户端和服务器之间实现单向实时通信的技术。它允许服务器向客户端推送数据,而无需客户端发起请求。 SSE(Server-Sent Events)在大多数现代浏览器中都有良好的支持,但仍然存在一些兼容性问题,特别是在旧版浏览器和移动设备上。下面是一些 阅读全文
posted @ 2023-12-28 14:17
yoona-lin
阅读(3143)
评论(0)
推荐(0)
摘要:
import { EventEmitter } from 'eventemitter3'; class H5SSE extends EventEmitter { static instance: H5SSE; static getInstance() { if (!H5SSE.instance) { 阅读全文
posted @ 2023-12-28 12:00
yoona-lin
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号