You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.4 KiB
65 lines
1.4 KiB
8 months ago
|
#if !BESTHTTP_DISABLE_SOCKETIO
|
||
|
|
||
|
namespace BestHTTP.SocketIO3
|
||
|
{
|
||
|
/// <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
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|