[Plugin] Photon Cloud

Post your completed addons to share with the community

Post » Wed Jun 21, 2017 9:18 pm

Image
I noticed that photons sending JSON data by default is there any way to enable binary data for smaller packets.

Like how brutes.io sends binary data
Image
B
11
S
3
Posts: 5
Reputation: 690

Post » Fri Jun 23, 2017 11:38 am

Hey @ThePhotons client need use onOperationResponse to get data,but i can,t find the cnds in photon plugin
here is unity example
public override void OnOperationResponse(OperationResponse operationResponse) {
base.OnOperationResponse(operationResponse); // important to call, to keep state up to date
switch (operationResponse.OperationCode) {
case OperationCode.Authenticate:
if (operationResponse.Parameters.ContainsKey(ParameterCode.Data)){
var data = (Dictionary<string, object>)operationResponse.Parameters[ParameterCode.Data];
}
break;
/*
...
*/
default:
break;
}
}
B
15
S
6
Posts: 12
Reputation: 1,149

Post » Sat Jun 24, 2017 11:38 am

Not sure why, but my PhotonChat cannot connet to the NameServer, and PhotonMultiplayer just working nicely :/
I've also update my plugin to 4.0.0.7 (your latest version), I try this at Node webkit, but in Browser it works good :/
~Everyone can make GAMEs~
B
50
S
10
G
1
Posts: 407
Reputation: 5,557

Post » Sun Jun 25, 2017 8:27 pm

@ThePhotons
B
11
S
3
Posts: 5
Reputation: 690

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests