#if !BESTHTTP_DISABLE_SOCKETIO
namespace BestHTTP.SocketIO
{
///
/// Possible event types on the transport level.
///
public enum TransportEventTypes : int
{
Unknown = -1,
Open = 0,
Close = 1,
Ping = 2,
Pong = 3,
Message = 4,
Upgrade = 5,
Noop = 6
}
///
/// Event types of the SocketIO protocol.
///
public enum SocketIOEventTypes : int
{
Unknown = -1,
///
/// Connect to a namespace, or we connected to a namespace
///
Connect = 0,
///
/// Disconnect a namespace, or we disconnected from a namespace.
///
Disconnect = 1,
///
/// A general event. The event's name is in the payload.
///
Event = 2,
///
/// Acknowledgment of an event.
///
Ack = 3,
///
/// Error sent by the server, or by the plugin
///
Error = 4,
///
/// A general event with binary attached to the packet. The event's name is in the payload.
///
BinaryEvent = 5,
///
/// Acknowledgment of a binary event.
///
BinaryAck = 6
}
///
/// Possible error codes that the SocketIO server can send.
///
public enum SocketIOErrors
{
///
/// Transport unknown
///
UnknownTransport = 0,
///
/// Session ID unknown
///
UnknownSid = 1,
///
/// Bad handshake method
///
BadHandshakeMethod = 2,
///
/// Bad request
///
BadRequest = 3,
///
/// Tried to access a forbidden resource
///
Forbidden = 4,
///
/// Plugin internal error!
///
Internal = 5,
///
/// Exceptions that caught by the plugin but raised in a user code.
///
User = 6,
///
/// A custom, server sent error, most probably from a Socket.IO middleware.
///
Custom = 7,
}
}
#endif