foundation-comms.connect.connect
Home > @genesislcap/foundation-comms > Connect > connect
Connect.connect() method
Connects to a server at the specified host.
Signature:
connect(host?: string): Promise<boolean>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) The host to connect to. Defaults to GENESIS_SOCKET_URL. |
Returns:
Promise<boolean>
A promise that resolves with a boolean indicating whether the connection was successful.