Skip to content

Commit bc2c1a9

Browse files
committed
docs(wiki): Added explanation to connection approval
1 parent 2903d93 commit bc2c1a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/getting-started/connection-approval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Connection Approval
33
permalink: /wiki/connection-approval/
44
---
55

6-
During every new connection the MLAPI performs a handshake on top of the one(s) done by the transport. This is to ensure that the NetworkConfig's match up between the Client and Server. In the NetworkConfig you can specify to enable ConnectionApproval. Connection approval will let you decide on a per connection basis if the connection should be allowed.
6+
During every new connection the MLAPI performs a handshake on top of the one(s) done by the transport. This is to ensure that the NetworkConfig's match up between the Client and Server. In the NetworkConfig you can specify to enable ConnectionApproval. Connection approval will let you decide on a per connection basis if the connection should be allowed. Connection approval also lets you specify the player prefab to be created, allowing you to override the default behaviour on a per player basis.
77

88
However, when ConnectionApproval is true you are also required to provide a callback where you put your approval logic inside. (Server only) Example:
99
```csharp

0 commit comments

Comments
 (0)