Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Websocket Client?

Discussion in 'Unity Transport' started by jasonboukheir3, Oct 12, 2023.

  1. jasonboukheir3


    Oct 10, 2023
    It's super cool how there is a WebSocketNetworkInterface in the transport package. However, it would be even cooler if developers could use it as a generic, cross-platform, websocket client, dontchu think?

    The websocket protocol is already implemented in it. The interface could be kept low level. I'm frequently finding a need to contact services via websockets in my projects, and would love to use a burst-compatible option.

    What say you, unity devs? If not, I'm adding it to a list of side-project todos :)
  2. simon-lemay-unity


    Unity Technologies

    Jul 19, 2021
    I understand why this would be seen as a useful addition to our API, but unfortunately that's not something we intend to provide for now. Our implementation of the WebSocket protocol is only meant to enable usage of Unity Transport on the WebGL platform. It was not meant as a general-purpose WebSocket library. In fact, our implementation of the protocol is incomplete. We only implemented what we needed to support Unity Transport. For example, text messages are not supported.
    jasonboukheir3 likes this.