Constructors
constructor
- new SseMsg(msgId: string, timeOut?: number): SseMsg
-
Parameters
-
msgId: string
-
timeOut: number = 300
Properties
callback
msgId
msgId: any
source
source: any
timeOut
timeOut: number
Methods
close
-
Returns void
init
-
Returns void
on
-
Parameters
Returns void
send
-
Parameters
Returns void
Static sendTo
- sendTo(msgId: string, message: any): void
-
Parameters
-
msgId: string
-
message: any
Returns void
sse 服务端消息管理类