Skip to content

Class

WebSocket

final class WebSocket

Topics

Structures

Instance Properties

  • closeCode
  • eventLoop
  • isClosed
  • onClose
  • pingInterval
    If set, this will trigger automatic pings on the connection. If ping is not answered before the next ping is sent, then the WebSocket will be presumed inactive and will be closed automatically. These pings can also be used to keep the WebSocket alive if there is some other timeout mechanism shutting down inactive connections, such as a Load Balancer deployed in front of the server.

Instance Methods

Type Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype