Skip to content

Can init NWWebSocket with custom NWParameters#67

Open
lluuaapp wants to merge 1 commit into
pusher:mainfrom
lluuaapp:main
Open

Can init NWWebSocket with custom NWParameters#67
lluuaapp wants to merge 1 commit into
pusher:mainfrom
lluuaapp:main

Conversation

@lluuaapp

@lluuaapp lluuaapp commented Jul 9, 2026

Copy link
Copy Markdown

Summary

This PR added an additional parameter NWParameters to the initializer of the NWWebSocket class. With NWParameters you can have custom TLS client certificates or allow certain (self signed) server certificates to be verified.

Changes

When providing NWParameters these will be used and still be enriched with the provided NWProtocolWebSocket.Options. If they are not provided the old behavior will be preserved, so there is no breaking change for current customers.

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.

1 participant