Get pingpong working in the browser with dummy REQ (#499)

This commit is contained in:
Chris McCormick
2025-07-24 22:22:15 +08:00
committed by GitHub
parent 4b6cc19b9c
commit 87f2c74bb3
5 changed files with 48 additions and 17 deletions

View File

@@ -14,8 +14,8 @@ export function useWebSocketImplementation(websocketImplementation: any) {
}
export class SimplePool extends AbstractSimplePool {
constructor() {
super({ verifyEvent, websocketImplementation: _WebSocket })
constructor(options?: { enablePing?: boolean }) {
super({ verifyEvent, websocketImplementation: _WebSocket, ...options })
}
}