Sign In Register

How can we help you today?

Start a new topic
Answered

Problem with createMatchDetailsRequest(RTS)

Hi, lovely users from GameSparks. I have problem with createMatchDetailsRequest. After send request, i get empty response. I don't know why is it. Please, help me.

RTSession.setInterval(function(){

    if(matchID != undefined)

    {        RTSession.newRequest().createMatchDetailsRequest().setMatchId(RTSession.getSessionId()).send(function(response){

            // construct a new RTData object with the player's display name //

            var rtDataToSend = RTSession.newData().setString(1, response.matchData);

            // send the display name to all the players //

            RTSession.newPacket().setOpCode(5).setData(rtDataToSend).send();

        });

    }

}, 10000);



Best Answer

Hey Vitaly,

Can you try that request with a playerID for one of the player's in that match and let us know if it working?
Something like this...

RTSession.newRequest().createMatchDetailsRequest()
            .setMatchId(RTSession.getSessionId())
            .setPlayerId(player.getPlayerId())
            .setRealtimeEnabled(true)
            .send(function(response){});


Thanks,
Sean


Thanks guys. All works.

Answer

Hey Vitaly,

Can you try that request with a playerID for one of the player's in that match and let us know if it working?
Something like this...

RTSession.newRequest().createMatchDetailsRequest()
            .setMatchId(RTSession.getSessionId())
            .setPlayerId(player.getPlayerId())
            .setRealtimeEnabled(true)
            .send(function(response){});


Thanks,
Sean


1 person likes this
Login to post a comment