Page 1 of 1

Unity, socket or websocket

Posted: 25 Aug 2020, 04:49
by khanhdev
I am using an Unity client. Should I use Socket or Websocket with the Bluebox for the connection. Which one has better performance? What are the advantages and disadvantages? sorry for my English not good.

Re: Unity, socket or websocket

Posted: 25 Aug 2020, 08:06
by Lapo
Hi,
in Unity you can use socket for all platforms with exclusion of WebGL which must use Websocket.

Both socket and Websocket can coexist in the same codebase with a bit of conditional compilation. You can take a look at this basic example: http://docs2x.smartfoxserver.com/Exampl ... /connector
to see you can use both at the same time.

Cheers