Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Send Offer Message Fail.

Discussion in 'Unity Render Streaming' started by woo_dong, Nov 23, 2022.

  1. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    error message :

    Signaling: WS connection closed, code: 1009, reason: The decoded text message was too big for the output buffer and the endpoint does not support partial messages


    my offer message size is about 12000 characters,
    It's mostly SDP.
    (sample is 8000 characters)

    RenderStreaming seem to be using Websocket-sharp.

    how do websocket-sharp increase buffer size?
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
  3. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
  4. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    For example, ClientWebSocket has a option for increasing the limit. In contrast, Websocket-sharp doesn't have.
     
  5. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    It would be possible to change the implementation of WebSocket to ClientWebSocket.
    I can see some people try to use it with Unity.
     
  6. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    I hope it will be replaced with "ClientWebSocket" as soon as possible.

    Can I expect it to be applied to the version that will be released in December this year?
     
  7. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    No, we won't release it this year.
     
    woo_dong likes this.
  8. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    3.1.0-exp.6 still has a same problem.

    I hope that WebSocket will be replaced. I can still only use EXP.3 version.
     
  9. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    My question, how do you avoid the problem with 3.1.0-exp.3 version?
     
  10. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    In versions below exp.3, the message size does not exceed the buffer size. I didn't change anything, but when exp.4 version or higher is applied, an error occurs as the message size increases.
     
  11. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Can you share the SDPs of these versions? We want to compare them.
     
  12. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    Once again, I reviewed the issue closely.

    In versions below exp.3, Don't send Offer message.

    In version exp.4 or higher, an error occurs while sending the offer message.
    (The sample's offer message is small, so it doesn't matter.)


    I also attach a file to my offer message.
     
  13. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    I got it, thank you.
     
  14. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    29
    I hope this issue will be resolved soon.
    I’m always rooting for you. :)