sending event problem
Options
I'm first time using photon.
I followed video - Intro Photon on cjrgaming.com and i'm try to make my own chat server.
So i use SendEvent method. I thought that method send message to all users connected.
but it response only one user it requests
how can i broadcast message to all user connected to my server?
this is my process
client sendrequest to server -> server receive message & call sendevent method to broadcast.
I followed video - Intro Photon on cjrgaming.com and i'm try to make my own chat server.
So i use SendEvent method. I thought that method send message to all users connected.
but it response only one user it requests
how can i broadcast message to all user connected to my server?
this is my process
client sendrequest to server -> server receive message & call sendevent method to broadcast.
0
Comments
-
you can not send it to all on the server
You can only communicate to all in the same room (if its Lite / LoadBalancing / LiteLobby) or to all in the interest areas (MMO)0 -
dreamora wrote:you can not send it to all on the server
You can only communicate to all in the same room (if its Lite / LoadBalancing / LiteLobby) or to all in the interest areas (MMO)
in video i saw, there is nothing about room or area, so i didn't notice it.
and i cant find a tutorial or sample code of serverside code.
how can i make room? or area?
please give me urls to let me study it.0 -
It looks like those photon intro videos published on cjrgaming.com were before Photon Cloud was available. Use the Cloud, then no server programming at all.
If you are determined to run your own server then mod-ing the source is not hard, but you have to read the source code in the src-server subfolder, like
ExitGames-Photon-Server-SDK_v3-0-24-3243-RC9/src-server0