Skip to content

Commit 03f0624

Browse files
committed
fix: wss pr suggestion
1 parent 7e6f2dc commit 03f0624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const WebSockets = fmt(_WebSockets)
309309

310310
const _WebSocketsSecure = or(
311311
and(_WEB, literal('wss'), optional(peerId())),
312-
and(_WEB, literal('tls'), optional(literal('sni'), string()), literal('ws'), optional(peerId()))
312+
and(_WEB, literal('tls'), optional(and(literal('sni'), string())), literal('ws'), optional(peerId()))
313313
)
314314

315315
/**

0 commit comments

Comments
 (0)