connect
Function of @v12-engine/engine
ts
export declare function connect(transport: Transport, options: ConnectOptions): Promise<RemoteSession>;Connects to a host over a transport (the player's end of it), and waits for the welcome: what the session is made of. Fails when the host runs another version of the game, or of the engine's wire (PROTOCOL_VERSION), and when the connection closes before the session is made: while the map is made from the welcome too