Skip to content

FIX type of SimplePeerConnectionHandlerOptions.webSocketConstructor#7311

Merged
pubkey merged 2 commits into
pubkey:masterfrom
nero-networks:bugfix/webrtc-type-fix
Aug 13, 2025
Merged

FIX type of SimplePeerConnectionHandlerOptions.webSocketConstructor#7311
pubkey merged 2 commits into
pubkey:masterfrom
nero-networks:bugfix/webrtc-type-fix

Conversation

@nero-networks

Copy link
Copy Markdown
Contributor

This PR contains:

A fix of the typing of SimplePeerConnectionHandlerOptions.webSocketConstructor.

Describe the problem you have without this PR

Without this change the expected type is a WebSocket instance, not the constuctor.

Todos

  • Tests
  • Documentation
  • Typings
  • Changelog

@pubkey

pubkey commented Jul 31, 2025

Copy link
Copy Markdown
Owner

@nero-networks this fails the CI, please check.

@nero-networks

Copy link
Copy Markdown
Contributor Author

i learned about the incompatibility of browser WebSockets and nodes WebSocket. npm run test runs the type checking correct now. Strangely it fails because "test:browser" is missing in package.json scripts.

@nero-networks nero-networks force-pushed the bugfix/webrtc-type-fix branch from 0de01a6 to 17d73a5 Compare August 11, 2025 16:24
@pubkey pubkey merged commit cdf7396 into pubkey:master Aug 13, 2025
23 checks passed
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