question

web avatar image
web asked

How to use Websocket Transport in this example? Mirror - Playfab - WebGL

I used this document to build a game server and it originally uses telepathy. I changed every telepathy reference to websocket transport. For example:

 private void ConnectRemoteClient(RequestMultiplayerServerResponse response = null)
     {
         if(response == null) 
         {
             networkManager.networkAddress = configuration.ipAddress;
             simpleWebTransport.port = configuration.port;
             //telepathyTransport.port = configuration.port;
             // apathyTransport.port = configuration.port;
         }
         else
         {
             Debug.Log("**** ADD THIS TO YOUR CONFIGURATION **** -- IP: " + response.IPV4Address + " Port: " + (ushort)response.Ports[0].Num);
             networkManager.networkAddress = response.IPV4Address;
             simpleWebTransport.port = (ushort)response.Ports[0].Num;
             //telepathyTransport.port = (ushort)response.Ports[0].Num;
             // apathyTransport.port = (ushort)response.Ports[0].Num;
         }
    
         networkManager.StartClient();
     }

But when I want to login to the server it says: Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=4AAD3BACAB95B818 netId=1 Do I need a ssl certificate when I use playfab game server?

https://docs.google.com/document/d/1ZgtDsgTcccyj25jSZgQPJ3_gnUCaOqQoJ9cvay2IfV4/edit?pli=1

Custom Game Servers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The error message “Could not spawn assetId=00000000-0000-0000-0000-000000000000” is related to Mirror. For more details, please refer to unity game engine - Mirror error: Could not spawn assetId=00000000-0000-0000-0000-000000000000 - Stack Overflow. And since we are not experts in Mirror, you may ask Mirror Team for further assistance. About SSL certificate question, you can refer to this thread : Can GameServers Run a WebSocket Server With SSL? - Playfab Community.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.