ConnectionManager
@vimp-mp/types 2.0.1Controls the multiplayer server connection.
ts
interface ConnectionManagerMembers
connect
ts
connect(address: string): voidConnect to a server. Empty string uses the default/last address.
disconnect
ts
disconnect(): voidDisconnects from the current server.
getAddress
ts
getAddress(): stringCurrent server address ("ip:port"), or empty string if disconnected.
getState
ts
getState(): ConnectionStateReturns whether the client is currently connected or disconnected.