Hello, I’m currently trying to get an end to end test of my dedicated server’s integration with AMS using amssim. My local server is showing up in the admin portal with what I believe to be are the appropriate claim keys and I’ve got a session template setup, but the “ds claim” command does nothing. Here’s my setup:
…so as you can see in the dashboard, the server is “claimed” but the server was not told about it as I expected to receive a message via the Hub websocket connection. (Note that I’m not using the SDKs as my dedicated server is written in typescript, but both the watchdog and hub websocket connections have been stood up correctly.)
AMSSim will only set the DS status to claimed when you call ds claim. DS Hub is not aware of that action. DS Hub will inform the DS regarding the claim action when the Session Service requests DS in AMS. Here’s a quick flow to do that:
Start DS locally using AMSSim (without calling ds claim).
DS should send “ready” to AMS (I believe you’ve already done this).
Game Client Create Session. Make sure you attach the ServerName with your local DS server name.
Now, DS Hub will inform your DS regarding the claim event. This is an example of the websocket message:
Strange, I ran the same code again today and it worked (I got a matchmaking ticket id). Then I ran it again, and got an http 400. Why would subsequent requests for matchmaking ticket cause a 400?
A single user can only have one active match ticket, and if you try to create multiple match tickets, you will get error code: 520324. Please let me know if this answer your question.
If you have any further questions that are not related to this thread’s topic, please feel free to create another post. Thank you.