Skip to content

Conversation

@NAllred91
Copy link

Creating this PR to discuss migrating to TypeScript.

The API surface in this commit is slightly different than the current implementation. If backwards compatibility is a concern this can be adjusted.

Some things that are still incomplete:

  • Other channels besides the Input Channel.
  • Starting/Stopping channels.
  • Authenticated connections.
  • Need more tests.

Some things that are improved:

  • Connection should be more stable.
  • Less dgram usage. (One discovery socket, one dedicated socket per xbox)
  • Optional auto reconnect.
  • Input channel continuously streams gamepad state. (I think I still want to slow down when nothing is happening on the gamepad)

I've included some demos with comments that should be fairly self explanatory.

Looking forward to your feedback!

@NAllred91 NAllred91 changed the title DO NOT MERGE - Initial commit exploring TypeScript support DO NOT MERGE - Exploring TypeScript support Apr 26, 2022
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