buttplug icon indicating copy to clipboard operation
buttplug copied to clipboard

JSON parser doesn't handle streamed JSON

Open qdot opened this issue 4 years ago • 0 comments

Describe the bug

  1. Open a legacy C# program like ScriptPlayer, connect to Intiface CLI somehow
  2. Connect 3 or more toys
  3. Start a video, all toys should move
  4. Hit stop

Expected behavior All toys stop

Actual behavior Any non-linear toy may not stop, JsonSerializerError message about "trailing characters" posted.

Additional context C# packs StopAllDevices into a series of StopDeviceCmd messages, each with their own array, then ships them all at once in the same Websocket packet. This chokes the parser, which isn't set up to handle streaming correctly.

qdot avatar Mar 09 '21 04:03 qdot