Gjsify LogoGjsify Logo

Pre-defined close codes that can be passed to soup_websocket_connection_close() or received from soup_websocket_connection_get_close_code(). (However, other codes are also allowed.)

Index

Enumeration Members

ABNORMAL: number

reserved value indicating that the connection was closed abnormally; must not be sent.

BAD_DATA: number

the endpoint received data that was invalid (eg, non-UTF-8 data in a text message).

GOING_AWAY: number

the client/server is going away

NORMAL: number

a normal, non-error close

NO_EXTENSION: number

the client is closing the connection because the server failed to negotiate a required extension.

NO_STATUS: number

reserved value indicating that no close code was present; must not be sent.

POLICY_VIOLATION: number

generic error code indicating some sort of policy violation.

PROTOCOL_ERROR: number

a protocol error occurred

SERVER_ERROR: number

the server is closing the connection because it was unable to fulfill the request.

TLS_HANDSHAKE: number

reserved value indicating that the TLS handshake failed; must not be sent.

TOO_BIG: number

the endpoint received a message that is too big to process.

UNSUPPORTED_DATA: number

the endpoint received data of a type that it does not support.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method