@@ -23,45 +23,49 @@ For integrating **Pusher Channels** with **Unity** follow the instructions at <h
23
23
24
24
## Contents
25
25
26
- - [ Installation] ( #installation )
27
- - [ API] ( #api )
28
- - [ Overview] ( #overview )
29
- - [ Sample application] ( #sample-application )
30
- - [ Configuration] ( #configuration )
31
- - [ The PusherOptions object] ( #the-pusheroptions-object )
32
- - [ Application Key] ( #application-key )
33
- - [ Connecting] ( #connecting )
34
- - [ Connection States] ( #connection-States )
35
- - [ Auto reconnect] ( #auto-reconnect )
36
- - [ Disconnecting] ( #disconnecting )
37
- - [ Connected and Disconnected delegates] ( #connected-and-disconnected-delegates )
38
- - [ Subscribing] ( #subscribing )
39
- - [ Error handling] ( #error-handling )
40
- - [ Public channels] ( #public-channels )
41
- - [ Private channels] ( #private-channels )
42
- - [ Private encrypted channels] ( #private-encrypted-channels )
43
- - [ Presence channels] ( #Presence-channels )
44
- - [ HttpAuthorizer] ( #httpauthorizer )
45
- - [ Subscribed delegate] ( #subscribed-delegate )
46
- - [ Unsubscribe] ( #unsubscribe )
47
- - [ Binding to events] ( #binding-to-events )
48
- - [ Per-channel] ( #per-channel )
49
- - [ Globally] ( #globally )
50
- - [ Triggering events] ( #triggering-events )
51
- - [ Developer notes] ( #developer-notes )
52
- - [ Testing] ( #testing )
53
- - [ Code signing key generation] ( #code-signing-key-generation )
54
- - [ Migrating from version 1 to version 2] ( #migrating-from-version-1-to-version-2 )
55
- - [ Changed in the Pusher class] ( #changed-in-the-pusher-class )
56
- - [ Removed from the Pusher class] ( #removed-from-the-pusher-class )
57
- - [ Removed from the Channel class] ( #removed-from-the-channel-class )
58
- - [ Removed from the GenericPresenceChannel class] ( #removed-from-the-genericpresencechannel-class )
59
- - [ Removed from the ConnectionState enum] ( #removed-from-the-connectionstate-enum )
60
- - [ Changed in the GenericPresenceChannel class] ( #changed-in-the-genericpresencechannel-class )
61
- - [ Added to the Pusher class] ( #added-to-the-pusher-class )
62
- - [ Added to the GenericPresenceChannel class] ( #added-to-the-genericpresencechannel-class )
63
- - [ Added to the ErrorCodes enum] ( #added-to-the-errorcodes-enum )
64
- - [ License] ( #license )
26
+ - [ Pusher Channels .NET Client library] ( #pusher-channels-net-client-library )
27
+ - [ Supported platforms] ( #supported-platforms )
28
+ - [ Contents] ( #contents )
29
+ - [ Installation] ( #installation )
30
+ - [ API] ( #api )
31
+ - [ Overview] ( #overview )
32
+ - [ Sample application] ( #sample-application )
33
+ - [ Configuration] ( #configuration )
34
+ - [ The PusherOptions object] ( #the-pusheroptions-object )
35
+ - [ Application Key] ( #application-key )
36
+ - [ Connecting] ( #connecting )
37
+ - [ Connection States] ( #connection-states )
38
+ - [ Auto reconnect] ( #auto-reconnect )
39
+ - [ Disconnecting] ( #disconnecting )
40
+ - [ Connected and Disconnected delegates] ( #connected-and-disconnected-delegates )
41
+ - [ Subscribing] ( #subscribing )
42
+ - [ Error handling] ( #error-handling )
43
+ - [ Public channels] ( #public-channels )
44
+ - [ Private channels] ( #private-channels )
45
+ - [ Private encrypted channels] ( #private-encrypted-channels )
46
+ - [ Presence channels] ( #presence-channels )
47
+ - [ HttpAuthorizer] ( #httpauthorizer )
48
+ - [ Subscribed delegate] ( #subscribed-delegate )
49
+ - [ Unsubscribe] ( #unsubscribe )
50
+ - [ Subscription Count Handler] ( #subscription-count-handler )
51
+ - [ Binding to events] ( #binding-to-events )
52
+ - [ Per-channel] ( #per-channel )
53
+ - [ Globally] ( #globally )
54
+ - [ Triggering events] ( #triggering-events )
55
+ - [ Developer notes] ( #developer-notes )
56
+ - [ Testing] ( #testing )
57
+ - [ Code signing key generation] ( #code-signing-key-generation )
58
+ - [ Migrating from version 1 to version 2] ( #migrating-from-version-1-to-version-2 )
59
+ - [ Changed in the Pusher class] ( #changed-in-the-pusher-class )
60
+ - [ Removed from the Pusher class] ( #removed-from-the-pusher-class )
61
+ - [ Removed from the Channel class] ( #removed-from-the-channel-class )
62
+ - [ Removed from the GenericPresenceChannel class] ( #removed-from-the-genericpresencechannel-class )
63
+ - [ Removed from the ConnectionState enum] ( #removed-from-the-connectionstate-enum )
64
+ - [ Changed in the GenericPresenceChannel class] ( #changed-in-the-genericpresencechannel-class )
65
+ - [ Added to the Pusher class] ( #added-to-the-pusher-class )
66
+ - [ Added to the GenericPresenceChannel class] ( #added-to-the-genericpresencechannel-class )
67
+ - [ Added to the ErrorCodes enum] ( #added-to-the-errorcodes-enum )
68
+ - [ License] ( #license )
65
69
66
70
## Installation
67
71
@@ -930,6 +934,19 @@ await pusher.UnsubscribeAllAsync().ConfigureAwait(false);
930
934
931
935
```
932
936
937
+ ## Subscription Count Handler
938
+
939
+ Add this handler to recieve subscription count events. Read more about it [ here] ( https://pusher.com/docs/channels/using_channels/events/#pushersubscription_count-1165820117 )
940
+
941
+ ``` cs
942
+ void PusherCountEventHandler (object sender , string data ) {
943
+ var dataAsObj = JsonConvert .DeserializeObject <SubscriptionCountData >(data );
944
+ Console .WriteLine (dataAsObj .subscriptionCount );
945
+ }
946
+
947
+ pusher .CountHandler += PusherCountEventHandler ;
948
+ ```
949
+
933
950
## Binding to events
934
951
935
952
Events can be bound to at two levels; per-channel or globally.
0 commit comments