mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-27 20:04:35 +00:00
65 lines
1.4 KiB
C#
65 lines
1.4 KiB
C#
|
#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
|