Provides basic operations of the Photon Chat server. This internal class is used by public ChatClient.
More...
Inherits PhotonPeer.
|
const string | NameServerHost = "ns.exitgames.com" |
| Name Server Host Name for Photon Cloud. Without port and without any prefix. More...
|
|
const string | NameServerHttp = "http://ns.exitgamescloud.com:80/photon/n" |
| Name Server for HTTP connections to the Photon Cloud. Includes prefix and port. More...
|
|
|
string | NameServerAddress [get] |
| Name Server Address for Photon Cloud (based on current protocol). You can use the default values and usually won't have to set this value. More...
|
|
Provides basic operations of the Photon Chat server. This internal class is used by public ChatClient.
◆ ChatPeer()
Photon.Chat.ChatPeer.ChatPeer |
( |
IPhotonPeerListener |
listener, |
|
|
ConnectionProtocol |
protocol |
|
) |
| |
Chat Peer constructor.
- Parameters
-
listener | Chat listener implementation. |
protocol | Protocol to be used by the peer. |
◆ AuthenticateOnNameServer()
bool Photon.Chat.ChatPeer.AuthenticateOnNameServer |
( |
string |
appId, |
|
|
string |
appVersion, |
|
|
string |
region, |
|
|
AuthenticationValues |
authValues |
|
) |
| |
Authenticates on NameServer.
- Returns
- If the authentication operation request could be sent.
◆ Connect()
bool Photon.Chat.ChatPeer.Connect |
( |
| ) |
|
Connects to NameServer.
- Returns
- If the connection attempt could be sent.
◆ NameServerHost
const string Photon.Chat.ChatPeer.NameServerHost = "ns.exitgames.com" |
|
static |
Name Server Host Name for Photon Cloud. Without port and without any prefix.
◆ NameServerHttp
const string Photon.Chat.ChatPeer.NameServerHttp = "http://ns.exitgamescloud.com:80/photon/n" |
|
static |
Name Server for HTTP connections to the Photon Cloud. Includes prefix and port.
◆ NameServerAddress
string Photon.Chat.ChatPeer.NameServerAddress |
|
get |
Name Server Address for Photon Cloud (based on current protocol). You can use the default values and usually won't have to set this value.