FlashChat and iPhone SDK

canaksoy
edited August 2011 in Native
Hi
I joined same chat room from iPhone client and Flash Client. (using flashchat demo and realtime obj c demo)
How can I send data from iPhone Client to Flash Chat Demo ?

Flash uses to get:
case ChatEvent.TYPE:
					debug("actor"+mActorNo+" got Photon Event: custom!");
					debug("=> actor who sent message:"+(event as ChatEvent).getActorNo());
					debug("=> message:"+(event as ChatEvent).getMessage());
					printChatLine("actor"+(event as ChatEvent).getActorNo(), (event as ChatEvent).getMessage());
					break;

Xcode to send (also get)?
[m_pLitePeer opCustom..... or any else ???

Comments

  • There is a sample in the iOS (iPhone) SDK that also uses raise event. Please have a look at it.
    Our objC developer is on well deserved vacation for this week.
  • Hi. Back from vacation now.

    Sending:
    You can use PhotonPeer::opCustom() therefor, but it will be simpler to just use LitePeer::opRaiseEvent().

    Receiving:
    You will receive events in PhotonListener::eventAction().