virtualx-engine/modules/multiplayer/doc_classes
Fabio Alessandrelli 9773803e4e [MP] Add optional authentication to SceneMultiplayer.
Add few methods to allow peers to exchange authentication information.

- `set_auth_callback(callback)`: Enable the authentication features.
  The callback is a `Callable` that accepts an `int` (the peer ID), and
  a `PackedByteArray` of data.
- The `peer_authenticating(id)` signal will be emitted instead of
  `peer_connected` when a new peer connects.
- Use `send_auth(id: int, data: PackedByteArray)` to exchange data.
- Call `complete_auth(id: int)` when the authentication process is
  complete and you expect to start receiving game data.
- The `peer_connected` signal will be emitted as soon as both parties
  complete the authentication.
- Use `disconnect_peer(id)` to disconnect a connected peer.
- If the `peer_connected` signal didn't fire for that peer (i.e. it was
  still in the authentication phase), the `peer_auth_failed` signal will
  be emitted instead of `peer_disconnected`.
2022-11-02 15:17:23 +01:00
..
MultiplayerSpawner.xml Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
MultiplayerSynchronizer.xml Fix typos with codespell 2022-09-30 14:23:36 +02:00
SceneMultiplayer.xml [MP] Add optional authentication to SceneMultiplayer. 2022-11-02 15:17:23 +01:00
SceneReplicationConfig.xml Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00