File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export const createWebSocket: CreateWebSocket = (
191191 * - Is rejected when a connection is closed.
192192 * - Is resolved when WebSocket is disposed().
193193 */
194- retry (
194+ void retry (
195195 {
196196 ...defaultRetryOptions ,
197197 ...retryOptions ,
@@ -237,14 +237,10 @@ export const createWebSocket: CreateWebSocket = (
237237 onMessage ?.( event . data as string | ArrayBuffer | Blob ) ;
238238 } ;
239239 } ) ,
240- ) ( reconnectController )
241- . then ( ( result ) => {
242- if ( result . ok || result . error . type === "AbortError" ) return ;
243- onError ?.( result . error as WebSocketError ) ;
244- } )
245- . catch ( ( error : unknown ) => {
246- throw error ;
247- } ) ;
240+ ) ( reconnectController ) . then ( ( result ) => {
241+ if ( result . ok || result . error . type === "AbortError" ) return ;
242+ onError ?.( result . error as WebSocketError ) ;
243+ } ) ;
248244
249245 return {
250246 send : ( data ) => {
You can’t perform that action at this time.
0 commit comments