C# Class Phoenix.Socket

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

Méthodes publiques

Méthode Description
Channel ( string topic, Newtonsoft.Json.Linq.JObject chanParams ) : Channel
Connect ( ) : void
Disconnect ( System.Action callback = null, ushort code = null, string reason = null ) : void
OnClose ( Action callback ) : void
OnError ( Exception>.Action callback ) : void
OnMessage ( Action callback ) : void
OnOpen ( System.Action callback ) : void
Socket ( string endpoint, SocketOptions options ) : Newtonsoft.Json
Socket ( string endpoint, int timeout = Phoenix.DEFAULT_TIMEOUT, int heartbeatIntervalMs = Phoenix.DEFAULT_HEARTBEAT_INTERVAL, Newtonsoft.Json.Linq.JObject params_ = null, int>.Func reconnectAfterMs = null, Action logger = null ) : Newtonsoft.Json

Private Methods

Méthode Description
ConnectionState ( ) : string
DefaultLogger ( string kind, string msg, Newtonsoft.Json.Linq.JObject data ) : void
DefaultReconnectAfterMs ( int numTries ) : int
EndpointUrl ( ) : string
FlushSendBuffer ( ) : void
IsConnected ( ) : bool
Log ( string kind, string msg, Newtonsoft.Json.Linq.JObject data = null ) : void
MakeRef ( ) : string
OnConnClose ( object sender, CloseEventArgs e ) : void
OnConnError ( object sender, ErrorEventArgs e ) : void
OnConnMessage ( object sender, MessageEventArgs e ) : void
OnConnOpen ( object sender, EventArgs e ) : void
Push ( Newtonsoft.Json.Linq.JObject data ) : void
Reconnect ( ) : void
Remove ( Channel channel ) : void
SendHeartbeat ( ) : void
TriggerChanError ( ) : void

Method Details

Channel() public méthode

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

Connect() public méthode

public Connect ( ) : void
Résultat void

Disconnect() public méthode

public Disconnect ( System.Action callback = null, ushort code = null, string reason = null ) : void
callback System.Action
code ushort
reason string
Résultat void

OnClose() public méthode

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

OnError() public méthode

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

OnMessage() public méthode

public OnMessage ( Action callback ) : void
callback Action
Résultat void

OnOpen() public méthode

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

Socket() public méthode

public Socket ( string endpoint, SocketOptions options ) : Newtonsoft.Json
endpoint string
options SocketOptions
Résultat Newtonsoft.Json

Socket() public méthode

public Socket ( string endpoint, int timeout = Phoenix.DEFAULT_TIMEOUT, int heartbeatIntervalMs = Phoenix.DEFAULT_HEARTBEAT_INTERVAL, Newtonsoft.Json.Linq.JObject params_ = null, int>.Func reconnectAfterMs = null, Action logger = null ) : Newtonsoft.Json
endpoint string
timeout int
heartbeatIntervalMs int
params_ Newtonsoft.Json.Linq.JObject
reconnectAfterMs int>.Func
logger Action
Résultat Newtonsoft.Json