-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Describe the bug
When installing the new npm package, stop doesn't work and following error is throw in Initface logs:
Got invalid messages from remote Buttplug connection - Message: Text("[{\"StopDeviceCmd\":{\"Id\":6,\"DeviceIndex\":0}}]") - Error: JsonSerializerError("Message: [{\"StopDeviceCmd\":{\"Id\":6,\"DeviceIndex\":0}}] - Error: Error(\"unknown variant `StopDeviceCmd`, expected one of `RequestServerInfo`, `Ping`, `StartScanning`, `StopScanning`, `RequestDeviceList`, `StopCmd`, `OutputCmd`, `InputCmd`\", line: 0, column: 0)")Checked out the repo and tested it locally, and it does seem to work fine. So it seems to be an issue where the published version isn't the same as the latest code?
Looking at: https://cdn.jsdelivr.net/npm/buttplug@4.0.0/dist/web/buttplug.js
You can clearly find the StopDeviceCmd variant, but it is nowhere to be found in the code.
Expected behavior
NPM should have the latest / correct version. Triggering a stop command should send StopCmd.
Additional context
There might also be other things wrong because of the mismatch in published version.
Reactions are currently unavailable