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);
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.
Vitaly Evtukh
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);
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
- Oldest First
- Popular
- Newest First
Sorted by Newest FirstVitaly Evtukh
Thanks guys. All works.
Customer Support
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
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics