Search Unity

What socket/websocket does everyone use?

Discussion in 'Scripting' started by Tomnnn, Sep 9, 2020.

  1. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    After my last disastrous nuget adventure I think I'd like to ask first what asset, external package, or internal package would be best for simple websocket communications. I've got a server that's able to accept / serve websockets and I might support browser clients in the future so I'd like to stick with websockets.

    In the mean time, I'll sift through some nuget packages and see if any don't kill unity :)
     
  2. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    After some trial and lots of errors, I got this one working: https://github.com/endel/NativeWebSocket

    I very strongly doubt this will be of use to anyone, but for anyone using the websocket package from go, either make sure your unity client is doing the handshake right or be sure to initialize your server without a handshake which will bypass it.