Type Aliases
The following type aliases are available globally.
-
the type signature of a websocket response handler
Declaration
Swift
public typealias WSResponseHandler = (_ request: OutgoingWSRequest, _ status: UInt32, _ message: String, _ body: Data?) -> Void
-
the type signature of a websocket request handler
Declaration
Swift
public typealias WSRequestHandler = (_ request: IncomingWSRequest) -> Void