Enums.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #if !BESTHTTP_DISABLE_SOCKETIO
  2. namespace BestHTTP.SocketIO3
  3. {
  4. /// <summary>
  5. /// Possible event types on the transport level.
  6. /// </summary>
  7. public enum TransportEventTypes : int
  8. {
  9. Unknown = -1,
  10. Open = 0,
  11. Close = 1,
  12. Ping = 2,
  13. Pong = 3,
  14. Message = 4,
  15. Upgrade = 5,
  16. Noop = 6
  17. }
  18. /// <summary>
  19. /// Event types of the SocketIO protocol.
  20. /// </summary>
  21. public enum SocketIOEventTypes : int
  22. {
  23. Unknown = -1,
  24. /// <summary>
  25. /// Connect to a namespace, or we connected to a namespace
  26. /// </summary>
  27. Connect = 0,
  28. /// <summary>
  29. /// Disconnect a namespace, or we disconnected from a namespace.
  30. /// </summary>
  31. Disconnect = 1,
  32. /// <summary>
  33. /// A general event. The event's name is in the payload.
  34. /// </summary>
  35. Event = 2,
  36. /// <summary>
  37. /// Acknowledgment of an event.
  38. /// </summary>
  39. Ack = 3,
  40. /// <summary>
  41. /// Error sent by the server, or by the plugin
  42. /// </summary>
  43. Error = 4,
  44. /// <summary>
  45. /// A general event with binary attached to the packet. The event's name is in the payload.
  46. /// </summary>
  47. BinaryEvent = 5,
  48. /// <summary>
  49. /// Acknowledgment of a binary event.
  50. /// </summary>
  51. BinaryAck = 6
  52. }
  53. }
  54. #endif