Jump to content
  • 0

Data channel messages receive with weird characters in the beginning


Mark Sergienko
 Share

Question

We're trying out the upcoming version with data channels SNAPSHOT-20200422_0813 and receiving some data that is truncated:

Swift using print(String.init(data: data, encoding: .utf8))


nil

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.48596491228070177,\"y\":0.5753086419753086}")

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.3900584795321637,\"y\":0.5857050032488629}")

nil

Optional(" \u{14}=܌\u{7F}\0\0:\"reaction\",\"positive\":true}")

Optional("\u{10}KH܌\u{7F}\0\0:\"click\",\"x\":0.49298245614035086,\"y\":0.5254061078622482}")



Part of the time messages received as nil 





Javascipt (see attached screenshot) 


Any idea what might be the problem?




624113563_photo_2020-04-2910_03_14.jpeg.781e0291ca4e340df5a013057bca7b4a.jpeg

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0
Same issue here, on 2.0. Even when closing a published stream when data channels are enabled, an RTCErrorEvent is raised... is this intended behavior?


On Wednesday, April 29, 2020 at 10:05:18 AM UTC-4, Mark Sergienko wrote:
We're trying out the upcoming version with data channels SNAPSHOT-20200422_0813 and receiving some data that is truncated:

Swift using print(String.init(data: data, encoding: .utf8))


nil

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.48596491228070177,\"y\":0.5753086419753086}")

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.3900584795321637,\"y\":0.5857050032488629}")

nil

Optional(" \u{14}=܌\u{7F}\0\0:\"reaction\",\"positive\":true}")

Optional("\u{10}KH܌\u{7F}\0\0:\"click\",\"x\":0.49298245614035086,\"y\":0.5254061078622482}")



Part of the time messages received as nil 





Javascipt (see attached screenshot) 


Any idea what might be the problem?




Dataerror.png.9bff90a964283811c864eea1facec877.png

Link to comment
Share on other sites

  • 0

In the latest 2.0 SNAPSHOT, this issue has been fixed. We're about to release 2.0 soon.  

On Friday, May 1, 2020 at 6:58:45 PM UTC+3, Logan McDonald wrote:
Same issue here, on 2.0. Even when closing a published stream when data channels are enabled, an RTCErrorEvent is raised... is this intended behavior?


On Wednesday, April 29, 2020 at 10:05:18 AM UTC-4, Mark Sergienko wrote:
We're trying out the upcoming version with data channels SNAPSHOT-20200422_0813 and receiving some data that is truncated:

Swift using print(String.init(data: data, encoding: .utf8))


nil

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.48596491228070177,\"y\":0.5753086419753086}")

Optional("\0\0\0\0\0\0\0\0:\"click\",\"x\":0.3900584795321637,\"y\":0.5857050032488629}")

nil

Optional(" \u{14}=܌\u{7F}\0\0:\"reaction\",\"positive\":true}")

Optional("\u{10}KH܌\u{7F}\0\0:\"click\",\"x\":0.49298245614035086,\"y\":0.5254061078622482}")



Part of the time messages received as nil 





Javascipt (see attached screenshot) 


Any idea what might be the problem?

Link to comment
Share on other sites

 Share

×
×
  • Create New...