Websocket Client?

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 :slight_smile:

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.

1 Like