C# Class PusherClient.Pusher

Inheritance: EventEmitter
显示文件 Open project: pusher-community/pusher-websocket-dotnet Class Usage Examples

Public Properties

Property Type Description
Channels Channel>.Dictionary
Trace TraceSource

Public Methods

Method Description
Connect ( ) : void
Disconnect ( ) : void
Pusher ( string applicationKey, PusherOptions options = null ) : System

Initializes a new instance of the Pusher class.

Subscribe ( string channelName ) : Channel

Private Methods

Method Description
AlreadySubscribed ( string channelName ) : bool
AuthEndpointCheck ( ) : void
CreateChannel ( ChannelTypes type, string channelName ) : void
MarkChannelsAsUnsubscribed ( ) : void
RaiseError ( PusherException error ) : void
SubscribeExistingChannels ( ) : void
SubscribeToChannel ( ChannelTypes type, string channelName ) : Channel
Trigger ( string channelName, string eventName, object obj ) : void
Unsubscribe ( string channelName ) : void
_connection_Connected ( object sender ) : void
_connection_ConnectionStateChanged ( object sender, ConnectionState state ) : void

Method Details

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Pusher() public method

Initializes a new instance of the Pusher class.
public Pusher ( string applicationKey, PusherOptions options = null ) : System
applicationKey string The application key.
options PusherOptions The options.
return System

Subscribe() public method

public Subscribe ( string channelName ) : Channel
channelName string
return Channel

Property Details

Channels public_oe property

public Dictionary Channels
return Channel>.Dictionary

Trace public_oe static_oe property

public static TraceSource Trace
return TraceSource