Skip to content

Commit

Permalink
fix(ws-client): should use costom WebSocketConstructor (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed May 16, 2022
1 parent 856db8d commit 03a54e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ws-client/src/index.ts
Expand Up @@ -77,7 +77,7 @@ export function createClient(url: string, options: VitestClientOptions = {}) {
function reconnect(reset = false) {
if (reset)
tries = reconnectTries
ctx.ws = new WebSocket(url)
ctx.ws = new WebSocketConstructor(url)
registerWS()
}

Expand Down

0 comments on commit 03a54e0

Please sign in to comment.