WebSocketClient.connectToUrl

Connect to the given URL requesting one of the given protocols as sub-protocol. If true is passed as gd_mp_api, the client will behave like a network peer for the MultiplayerAPI. Note: connections to non Godot servers will not work, and dataReceived will not be emitted when this option is true.

struct WebSocketClient
@nogc nothrow
GodotError
connectToUrl
(
StringArg0
)
(
in StringArg0 url
,
in PoolStringArray protocols = PoolStringArray.init
,
in bool gd_mp_api = false
)

Meta