HandshakeData.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. }
  32. }
  33. #endif