WebSocketServer.listen

Start listening on the given port. You can specify the desired subprotocols via the "protocols" array. If the list empty (default), "binary" will be used. You can use this server as a network peer for MultiplayerAPI by passing true as gd_mp_api. Note: dataReceived will not be fired and clients other than Godot will not work in this case.

struct WebSocketServer
@nogc nothrow
GodotError
listen
(
in long port
,
in PoolStringArray protocols = PoolStringArray.init
,
in bool gd_mp_api = false
)

Meta