question related shephurtz

0 votes
I am use quizup server in eclipse and AdminDashborad in local host. Zone room is work proper. And show message on cmd

send question packet of 512

sending question to user.

and in my app onUpdatePeersReceived is call. My problem is that how to get question data which is send for server

Thanks in advance
asked Dec 26, 2014 in AppWarpS2 by deepakjain.mobifly (10 points)

1 Answer

0 votes
Hi,

onUpdatePeersReceived returns the message in binary format. The message is the same that you have sent by using sendUpdatePeers from client app or using sendUpdatePeersNotification on server side.

So it depends on you how and what are you sending as messages.

The same goes for our QuizUp sample. You need to check out the source code of server application to understand how data is sent. Then you will able to decode the binary message.

The samples that we make are meant to show how to use certain APIs. They are not meant to be used directly in your app. You should use them to understand our product and implement APIs the way they suit you better. For example the quizup sample is using updatepeers, but you can simply use chat messages instead of binary message.

Thanks
answered Dec 27, 2014 by Suyash Mohan (900 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...