C# Class Phoenix.Channel

Afficher le fichier Open project: jfis/dn-phoenix Class Usage Examples

Méthodes publiques

Méthode Description
CanPush ( ) : bool
Channel ( string topic, Newtonsoft.Json.Linq.JObject params_, Socket socket ) : Newtonsoft.Json.Linq
IsMember ( string topic ) : bool
Join ( ) : Push
Join ( int timeout ) : Push
Leave ( ) : Push
Leave ( int timeout ) : Push
Off ( string event_ ) : void
On ( string event_, System.Action callback ) : void
On ( string event_, string>.Action callback ) : void
OnClose ( System.Action callback ) : void
OnError ( System.Action callback ) : void
OnMessage ( string event_, Newtonsoft.Json.Linq.JObject payload, string ref_ ) : void
Push ( string event_, Newtonsoft.Json.Linq.JObject payload ) : Push
Push ( string event_, Newtonsoft.Json.Linq.JObject payload, int timeout ) : Push
RejoinUntilConnected ( ) : void

Private Methods

Méthode Description
OnReply ( Newtonsoft.Json.Linq.JObject payload, string ref_ ) : void
Rejoin ( ) : void
Rejoin ( int timeout ) : void
ReplyEventName ( string ref_ ) : string
SendJoin ( int timeout ) : void
Trigger ( string triggerEvent, Newtonsoft.Json.Linq.JObject payload = null, string ref_ = null ) : void

Method Details

CanPush() public méthode

public CanPush ( ) : bool
Résultat bool

Channel() public méthode

public Channel ( string topic, Newtonsoft.Json.Linq.JObject params_, Socket socket ) : Newtonsoft.Json.Linq
topic string
params_ Newtonsoft.Json.Linq.JObject
socket Socket
Résultat Newtonsoft.Json.Linq

IsMember() public méthode

public IsMember ( string topic ) : bool
topic string
Résultat bool

Join() public méthode

public Join ( ) : Push
Résultat Push

Join() public méthode

public Join ( int timeout ) : Push
timeout int
Résultat Push

Leave() public méthode

public Leave ( ) : Push
Résultat Push

Leave() public méthode

public Leave ( int timeout ) : Push
timeout int
Résultat Push

Off() public méthode

public Off ( string event_ ) : void
event_ string
Résultat void

On() public méthode

public On ( string event_, System.Action callback ) : void
event_ string
callback System.Action
Résultat void

On() public méthode

public On ( string event_, string>.Action callback ) : void
event_ string
callback string>.Action
Résultat void

OnClose() public méthode

public OnClose ( System.Action callback ) : void
callback System.Action
Résultat void

OnError() public méthode

public OnError ( System.Action callback ) : void
callback System.Action
Résultat void

OnMessage() public méthode

public OnMessage ( string event_, Newtonsoft.Json.Linq.JObject payload, string ref_ ) : void
event_ string
payload Newtonsoft.Json.Linq.JObject
ref_ string
Résultat void

Push() public méthode

public Push ( string event_, Newtonsoft.Json.Linq.JObject payload ) : Push
event_ string
payload Newtonsoft.Json.Linq.JObject
Résultat Push

Push() public méthode

public Push ( string event_, Newtonsoft.Json.Linq.JObject payload, int timeout ) : Push
event_ string
payload Newtonsoft.Json.Linq.JObject
timeout int
Résultat Push

RejoinUntilConnected() public méthode

public RejoinUntilConnected ( ) : void
Résultat void