I'm having problems with my game client when the .dll that I uploaded to Playerio doesn't work properly.
I have also disabled the script
- Code: Select all
client.Multiplayer.DevelopmentServer = new ServerEndpoint("localhost", 8184);
Stuck at
- Code: Select all
CreateJoinRoom
- Code: Select all
Error Joining Room: PlayerIOClient.PlayerIOError: NetworkIssue; EndRead failed. IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
.
But when I am in Development mode using the app
- Code: Select all
Player.IO Development Server
Here my code:
- Code: Select all
PlayerIO.Authenticate(
"testgame-zjfmneq3fk6codjc3kc6og",
"public",
new Dictionary<string, string> {
{ "userId", userid },
},
null,
delegate (Client client) {
Debug.LogError("Successfully connected to Player.IO");
Debug.LogError("Create ServerEndpoint");
//client.Multiplayer.DevelopmentServer = new ServerEndpoint("localhost", 8184);
Debug.LogError("CreateJoinRoom");
client.Multiplayer.CreateJoinRoom(
"TestGame",
"TestGame",
true,
null,
null,
delegate (Connection connection) {
Debug.LogError("Joined Room.");
playerIOConnection = connection;
playerIOConnection.OnMessage += handleMessage;
joinedroom = true;
},
delegate (PlayerIOError error) {
Debug.LogError("Error Joining Room: " + error.ToString());
}
);
},
delegate (PlayerIOError error) {
Debug.LogError("Error connecting: " + error.ToString());
}
);
Im using Unity 2018.3.3f1 (client)
Vs2017 .net 4.5 (Server)
Sorry my bad englsh.
Thanks.