How to send a string to a websocket server using Unity Transport 2.1.0

As I indicated in the other thread , Unity Transport is not a general-purpose WebSocket library that can be used to communicate with WebSocket third-party services (like Vagon). It only supports communicating with peers that are themselves using Unity Transport. For general-purpose WebSocket communications, we recommend using a dedicated library like websocket-sharp.