Status Events for PubNub Kotlin SDK
Publish
Category | Description |
---|---|
PNBadRequestCategory | PubNub Kotlin SDK will send a PNBadRequestCategory when some parameter is missing like message, channel, subscribe key, publish key. |
PNUnexpectedDisconnectCategory | The SDK isn't able to reach the PubNub Data Stream Network because the machine or device aren't 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. |
PNTimeoutCategory | Processing has failed because of request time out. |
Subscribe
Current category | Deprecated category | Description |
---|---|---|
None | PNReconnectedCategory | SDK was able to reconnect to PubNub. |
PNConnectedCategory | PNConnectedCategory | SDK successfully subscribed with a new mix of channels. |
None | PNAcknowledgmentCategory | Used API report success with this status category. |
None | PNTimeoutCategory | Used API didn't receive a response from the server in time. |
PNUnexpectedDisconnectCategory | PNUnexpectedDisconnectCategory | Subscribe loop did fail, and the client disconnected from real-time data channels. |
None | PNMalformedResponseCategory | Request received in response non-JSON data. It can be because of publish WiFi hotspot which requires authorization or a proxy server message. |
None | PNRequestMessageCountExceededCategory | If requestMessageCountThreshold is set, this status event will arrive each time when the client receives more messages than specified. |
None | PNReconnectionAttemptsExhausted | The subscribe loop has been stopped due to maximum reconnection exhausted. |
PNDisconnectedCategory | PNDisconnectedCategory | The subscription has been stopped. SDK usubsrcibed from all channels. |
PNConnectionError | None | The subscribe loop connection cannot be initialized. |
PNSubscriptionChanged | None | SDK subscribed with a new mix of channels since the initial connection - subscribed to another channel or unsubscribed from a channel while still being subscribed to other channels. Fired every time the channel/channel group mix changes. |
Async operation responses
Category | Description |
---|---|
PNAcknowledgmentCategory | Used API report success with this status category. |
PNAccessDeniedCategory | Request failed because of access error (active Access Manager). pnStatus.affectedChannels or pnStatus.affectedChannelGroups contain a list of channels and groups to which user with specified authentication key doesn't have access. |
PNTimeoutCategory | Used API didn't receive a response from the server in time. |
PNBadRequestCategory | Request can't be completed because not all required values have been passed or passed values have unexpected data type. PubNub Kotlin SDK will send a PNBadRequestCategory when one or more parameters are missing, like message, channel, subscribe key, or publish key. |
PNMalformedResponseCategory | Request received in response non-JSON data. It can be because of publish WiFi hotspot which requires authorization or a proxy server message. |
PNUnknownCategory | The subscriber gets a 4xx code from the server, other than 400, 403, and 404 |
PNCancelledCategory | Request was cancelled by user. |
PNNotFoundCategory | The subscriber got a 404 from the server. |