HandshakeData.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #if !BESTHTTP_DISABLE_SOCKETIO
  2. using System.Collections.Generic;
  3. namespace BestHTTP.SocketIO3
  4. {
  5. /// <summary>
  6. /// Helper class to parse and hold handshake information.
  7. /// </summary>
  8. [PlatformSupport.IL2CPP.Preserve]
  9. public sealed class HandshakeData
  10. {
  11. /// <summary>
  12. /// Session ID of this connection.
  13. /// </summary>
  14. [PlatformSupport.IL2CPP.Preserve]
  15. public string Sid { get; private set; }
  16. /// <summary>
  17. /// List of possible upgrades.
  18. /// </summary>
  19. [PlatformSupport.IL2CPP.Preserve]
  20. public List<string> Upgrades { get; private set; }
  21. /// <summary>
  22. /// What interval we have to set a ping message.
  23. /// </summary>
  24. [PlatformSupport.IL2CPP.Preserve]
  25. public int PingInterval { get; private set; }
  26. /// <summary>
  27. /// What time have to pass without an answer to our ping request when we can consider the connection disconnected.
  28. /// </summary>
  29. [PlatformSupport.IL2CPP.Preserve]
  30. public int PingTimeout { get; private set; }
  31. /// <summary>
  32. /// This defines how many bytes a single message can be, before the server closes the socket.
  33. /// </summary>
  34. public int MaxPayload { get; private set; }
  35. }
  36. }
  37. #endif