Provides basic operations of the Photon Chat server. This internal class is used by public ChatClient.
More...
Inherits PhotonPeer.
|
string | NameServerHost = "ns.photonengine.io" |
| Name Server Host Name for Photon Cloud. Without port and without any prefix. More...
|
|
ushort | NameServerPortOverride |
| If not zero, this is used for the name server port on connect. Independent of protocol (so this better matches). Set by ChatClient.ConnectUsingSettings. 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()
ChatPeer |
( |
IPhotonPeerListener |
listener, |
|
|
ConnectionProtocol |
protocol |
|
) |
| |
Chat Peer constructor.
- Parameters
-
listener | Chat listener implementation. |
protocol | Protocol to be used by the peer. |
◆ AuthenticateOnNameServer()
bool AuthenticateOnNameServer |
( |
string |
appId, |
|
|
string |
appVersion, |
|
|
string |
region, |
|
|
AuthenticationValues |
authValues |
|
) |
| |
Authenticates on NameServer.
- Returns
- If the authentication operation request could be sent.
◆ NameServerHost
string NameServerHost = "ns.photonengine.io" |
Name Server Host Name for Photon Cloud. Without port and without any prefix.
◆ NameServerPortOverride
ushort NameServerPortOverride |
If not zero, this is used for the name server port on connect. Independent of protocol (so this better matches). Set by ChatClient.ConnectUsingSettings.
This is reset when the protocol fallback is used.
◆ NameServerAddress
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.