WebSocketClient.connectToUrl
struct WebSocketClient
@nogc nothrow
GodotError
connectToUrl
(,in PoolStringArray protocols = PoolStringArray.init ,)
godot websocketclient WebSocketClient
aliasesfunctionspropertiesstatic functionsstatic variablesstructsunionsvariables
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.