C# 클래스 Phoenix.Socket

파일 보기 프로젝트 열기: jfis/dn-phoenix 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Channel() 공개 메소드

public Channel ( string topic, Newtonsoft.Json.Linq.JObject chanParams ) : Channel
topic string
chanParams Newtonsoft.Json.Linq.JObject
리턴 Channel

Connect() 공개 메소드

public Connect ( ) : void
리턴 void

Disconnect() 공개 메소드

public Disconnect ( System.Action callback = null, ushort code = null, string reason = null ) : void
callback System.Action
code ushort
reason string
리턴 void

OnClose() 공개 메소드

public OnClose ( Action callback ) : void
callback Action
리턴 void

OnError() 공개 메소드

public OnError ( Exception>.Action callback ) : void
callback Exception>.Action
리턴 void

OnMessage() 공개 메소드

public OnMessage ( Action callback ) : void
callback Action
리턴 void

OnOpen() 공개 메소드

public OnOpen ( System.Action callback ) : void
callback System.Action
리턴 void

Socket() 공개 메소드

public Socket ( string endpoint, SocketOptions options ) : Newtonsoft.Json
endpoint string
options SocketOptions
리턴 Newtonsoft.Json

Socket() 공개 메소드

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
리턴 Newtonsoft.Json