Skip to content

Conversation

@nero-networks
Copy link
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
Copy link
Owner

pubkey commented Jul 31, 2025

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

@nero-networks
Copy link
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