Status Events for Angular2 SDK

Publish

CategoryDescription
PNNetworkIssuesCategory
The SDK is not being to able reach PubNub servers because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNBadRequestCategory
The SDK will return PNBadRequestCategory when are published messages and the instance of the SDK was not initialized with the publishKey.
When it notified an error which does not contain the category included, this will be a validation error because the channel or message or even both are been missing in the publication.

Subscription

CategoryDescription
PNNetworkUpCategory
The SDK detected that the network is online.
PNNetworkDownCategory
The SDK announces this when a connection isn't available, or when the SDK isn't able to reach PubNub servers.
PNNetworkIssuesCategory
A subscribe event experienced an exception when running. The SDK isn't able to reach PubNub servers. This may be due to many reasons, such as: the machine or device isn't connected to the internet; the internet connection has been lost; your internet service provider is having trouble; or, perhaps the SDK is behind a proxy.
PNReconnectedCategory
The SDK was able to reconnect to PubNub.
PNConnectedCategory
SDK subscribed with a new mix of channels. This is fired every time the channel or channel group mix changes.
PNAccessDeniedCategory
Access Manager permission failure.
PNMalformedResponseCategory
JSON parsing crashed.
PNBadRequestCategory
The server responded with a bad response error because the request is malformed.
PNDecryptionErrorCategory
If using decryption strategies and the decryption fails.
PNTimeoutCategory
Failure to establish a connection to PubNub due to a timeout.
PNRequestMessageCountExceedCategory
The SDK announces this error if requestMessageCountThreshold is set, and the number of messages received from PubNub (in-memory cache messages) exceeds the threshold.
PNUnknownCategory
Returned when the subscriber gets a non-200 HTTP response code from the server.
Last updated on