Error: Failed to connect to Stomp! #706
-
Our application executes the process of joining a lobby with the following steps:
In this process, we occasionally encounter an issue where A fails to receive packets from B. The log on client B shows "Failed to connect to Stomp!". ---------------- (log) ---------------- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is just speculation, but it seems that EOS need query NATType before connection. |
Beta Was this translation helpful? Give feedback.
This is just speculation, but it seems that EOS need query NATType before connection.
The client tries p2p on EOS server, and at that time, it determines the connection type based on the queried NAT info. Therefore, if the connection request reach to the server before finishing query, it seems to fail. (The connect way is different between the client that queries or not.) I found that the initial connection became stable after waiting for the query result (NATType != NATType.None) before send a request.