xbox-smartglass-core-node
xbox-smartglass-core-node copied to clipboard
DO NOT MERGE - Exploring TypeScript support
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!