xbox-smartglass-core-node icon indicating copy to clipboard operation
xbox-smartglass-core-node copied to clipboard

DO NOT MERGE - Exploring TypeScript support

Open NAllred91 opened this issue 3 years ago • 0 comments

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 avatar Apr 26 '22 01:04 NAllred91