$state = $session->getSubscriptionState( $object, $event )

The getSubscriptionState() function gets the current state of subscription to the specified event.

The possible values are listed in getSubscriptionState return codes .

Table 1. getSubscriptionState return codes

Return code

Subscription state

0

Unsubscribed

1

Pending

2

Subscribed

3

Suspended