Skip to content

feat: expose in public api ability to create a ws connection by specifying a WsSocketFactory, and referencing it in WsConnectionOptions. - #332

Merged
aricart merged 1 commit into
mainfrom
expose-ws-opts
Oct 2, 2025
Merged

aricart merged 1 commit into
mainfrom
expose-ws-opts

Conversation

@aricart

@aricart aricart commented Sep 30, 2025 •

Copy link
Copy Markdown
Member

WsConnectionOptions is a ConnectionOptions that exposes wsFactory?: WsSocketFactory

This enables uses where the runtime is known to provide additional non-standard options that may be necessary for the connection but differ from standard W3C new WebSocket(url) usages.

This feature was implemented previously but internal.

…fying a WsSocketFactory, and referencing it in WsConnectionOptions.

WsConnectionOptions is a ConnectionOptions that exposes `wsFactory?: WsSocketFactory`

This enables uses where the runtime is known to provide additional options that may be necessary for the connection but differ from standard W3C `new WebSocket(url)` usages.

Signed-off-by: Alberto Ricart <alberto@synadia.com>
@aricart
aricart requested a review from Jarema September 30, 2025 17:27

@Jarema Jarema left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@aricart
aricart merged commit 5927e37 into main Oct 2, 2025
9 checks passed
@aricart
aricart deleted the expose-ws-opts branch October 2, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants