Enum WebSocketCloseCode
- Namespace
- OBSStudioClient.Enums
- Assembly
- OBSClient.dll
1000 - 1011 are System.Net.WebSockets.WebSocketCloseStatus. The others are OBS.
public enum WebSocketCloseCode
Fields
DontClose = 0For internal use only to tell the request handler not to perform any close action.
NormalClosure = 1000The connection has closed after the request was fulfilled.
Indicates an endpoint is being removed. Either the server or client will become unavailable.
ProtocolError = 1002The client or server is terminating the connection because of a protocol error.
InvalidMessageType = 1003The client or server is terminating the connection because it cannot accept the data type it received.
Empty = 1005No error specified.
InvalidPayloadData = 1007The client or server is terminating the connection because it has received data inconsistent with the message type.
PolicyViolation = 1008The connection will be closed because an endpoint has received a message that violates its policy.
MessageTooBig = 1009The client or server is terminating the connection because it has received a message that is too big for it to process.
MandatoryExtension = 1010The client is terminating the connection because it expected the server to negotiate an extension.
InternalServerError = 1011The connection will be closed by the server because of an error on the server.
UnknownReason = 4000Unknown reason, should never be used.
MessageDecodeError = 4002The server was unable to decode the incoming websocket message.
MissingDataField = 4003A data field is required but missing from the payload.
InvalidDataFieldType = 4004A data field's value type is invalid.
InvalidDataFieldValue = 4005A data field's value is invalid.
UnknownOpCode = 4006The specified op was invalid or missing.
NotIdentified = 4007The client sent a websocket message without first sending Identify message.
AlreadyIdentified = 4008The client sent an Identify message while already identified.
Once a client has identified, only Reidentify may be used to change session parameters.
AuthenticationFailed = 4009The authentication attempt (via Identify) failed.
UnsupportedRpcVersion = 4010The server detected the usage of an old version of the obs-websocket RPC protocol.
SessionInvalidated = 4011The websocket session has been invalidated by the obs-websocket server.
This is the code used by the Kick button in the UI Session List. If you receive this code, you must not automatically reconnect.
UnsupportedFeature = 4012A requested feature is not supported due to hardware/software limitations.