module Defaulton
This module provides a default instance of the protocol, which can be used to create clients and servers. The name is a play on "Default" + "Singleton".
Definitions
def client(peer, **options)
Create a client for an outbound connection, using the default instance.
Implementation
def client(peer, **options)
default.client(peer, **options)
end
def server(peer, **options)
Create a server for an inbound connection, using the default instance.
Implementation
def server(peer, **options)
default.server(peer, **options)
end
def names
Signature
-
returns
Array
The names of the supported protocol, used for Application Layer Protocol Negotiation (ALPN), using the default instance.
Implementation
def names
default.names
end