Skip to content

Stop device on published package doesn't work #294

@iveplay

Description

@iveplay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions