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