Use eventsource package
This commit is contained in:
parent
cf4c592c8b
commit
c828067171
1 changed files with 31 additions and 17 deletions
|
|
@ -1,8 +1,5 @@
|
|||
import EventSource from "eventsource";
|
||||
import WebSocket from "ws";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(global as any).EventSource = EventSource;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(global as any).WebSocket = WebSocket;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue