Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Intregrate some socket network code to Tiny?

Discussion in 'Project Tiny' started by Moopra, Oct 19, 2020.

  1. Moopra

    Moopra

    Joined:
    Jun 4, 2015
    Posts:
    30
    As far as I can see ,Some current unity networks solutions like Photon Cloud are not compatible with Tiny yet.
    But if it just a socket/io network codes ,Can we modify it and put in Tiny? (Dedicated Server is welcome.)
    And If it work , Will it be hybrids or pure ECS?

    This's the video that show how to make a Sever-Client with socket in C#.
     
  2. SINePrime

    SINePrime

    Joined:
    Jan 24, 2019
    Posts:
    54
    Moopra likes this.
  3. Moopra

    Moopra

    Joined:
    Jun 4, 2015
    Posts:
    30
  4. CocosGames

    CocosGames

    Joined:
    Aug 31, 2014
    Posts:
    38
    Have you heard of " C# to jslib bound? "
     
  5. Moopra

    Moopra

    Joined:
    Jun 4, 2015
    Posts:
    30
    Maybe yes , I used to make one game that call js function from inside unity
    Does that mean doing socket stuff with JS?
     
  6. CocosGames

    CocosGames

    Joined:
    Aug 31, 2014
    Posts:
    38
    Yes.
     
  7. Moopra

    Moopra

    Joined:
    Jun 4, 2015
    Posts:
    30
    So I have to know how to make any socket.io game works.
    And about how to intregrate it in to Tiny via JSLIB. Follow @SINePrime.
    That's all I can conclude. Did I miss a thing?

    And also thanks you for the suggestion , it's really helpful.
     
  8. CocosGames

    CocosGames

    Joined:
    Aug 31, 2014
    Posts:
    38
    In fact, there's a great lib out of the box called colyseus.
    https://github.com/colyseus/colyseus-unity3d

    https://github.com/colyseus/colyseus-unity3d/tree/master/Assets/Plugins/WebSocket

    The websocket lib is ready to use.

    You may want to have a try.
     
    Moopra likes this.
  9. Moopra

    Moopra

    Joined:
    Jun 4, 2015
    Posts:
    30