CloseCodes

object CloseCodes

Socket close codes the gateway uses.

Properties

Link copied to clipboard
const val AUTH_FAILED: Int = 4003

Auth refused, or the session was revoked: bootstrap a fresh visitor.

Link copied to clipboard
const val AUTH_TIMEOUT: Int = 4001

No auth frame within 5 s of connecting: reconnect, auth first.

Link copied to clipboard
const val CLIENT_AUTH_ERROR: Int = 4000

The SDK closed the socket because building the auth payload failed.

Link copied to clipboard
const val PROTOCOL_OUTDATED: Int = 4004

The client's protocol version is older than the gateway supports: stop, ask for an update.

Link copied to clipboard
const val SESSION_REPLACED: Int = 4005

A session frame carried a new visitor token; reconnect at once.