C# Class Phoenix.Channel

Exibir arquivo Open project: jfis/dn-phoenix Class Usage Examples

Public Methods

Method 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

Method 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 method

public CanPush ( ) : bool
return bool

Channel() public method

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

IsMember() public method

public IsMember ( string topic ) : bool
topic string
return bool

Join() public method

public Join ( ) : Push
return Push

Join() public method

public Join ( int timeout ) : Push
timeout int
return Push

Leave() public method

public Leave ( ) : Push
return Push

Leave() public method

public Leave ( int timeout ) : Push
timeout int
return Push

Off() public method

public Off ( string event_ ) : void
event_ string
return void

On() public method

public On ( string event_, System.Action callback ) : void
event_ string
callback System.Action
return void

On() public method

public On ( string event_, string>.Action callback ) : void
event_ string
callback string>.Action
return void

OnClose() public method

public OnClose ( System.Action callback ) : void
callback System.Action
return void

OnError() public method

public OnError ( System.Action callback ) : void
callback System.Action
return void

OnMessage() public method

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

Push() public method

public Push ( string event_, Newtonsoft.Json.Linq.JObject payload ) : Push
event_ string
payload Newtonsoft.Json.Linq.JObject
return Push

Push() public method

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

RejoinUntilConnected() public method

public RejoinUntilConnected ( ) : void
return void