You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_docs/getting-started/connection-approval.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ The ConnectionData will then be passed to the server and it will decide if the c
36
36
37
37
38
38
### Timeout
39
-
The MLAPI uses a callback system in order to allow for external validation. Forexample, you might have a steam authentication ticket sent as the ConnectionData (encrypted and authenticated by the MLAPI) that you want to validate against steams servers. This can take some time. If you don't call the callback method within the time specified in the ``ClientConnectionBufferTimeout`` configuration. The connection will be dropped. This time starts counting when the transport has told the MLAPI about the connection. This means that you cannot attack the MLAPI by never sending the buffer, it will still time you out.
39
+
The MLAPI uses a callback system in order to allow for external validation. For example, you might have a steam authentication ticket sent as the ConnectionData (encrypted and authenticated by the MLAPI) that you want to validate against steams servers. This can take some time. If you don't call the callback method within the time specified in the ``ClientConnectionBufferTimeout`` configuration the connection will be dropped. This time starts counting when the transport has told the MLAPI about the connection. This means that you cannot attack the MLAPI by never sending the buffer, it will still time you out.
Copy file name to clipboardExpand all lines: docs/_docs/the-basics/messaging-system.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ void MyMethod(int myInt)
23
23
24
24
#### Convenience Example
25
25
```csharp
26
-
privatevoidUpdate()
26
+
privatevoidOnGUI()
27
27
{
28
-
if (GUI.Button("SendRandomInt"))
28
+
if (GUILayout.Button("SendRandomInt"))
29
29
{
30
30
if (IsServer)
31
31
{
@@ -41,14 +41,14 @@ private void Update()
41
41
[ServerRPC]
42
42
privatevoidMyServerRPC(intnumber)
43
43
{
44
-
Debug.Log("The number recieved was: "+number);
44
+
Debug.Log("The number received was: "+number);
45
45
Debug.Log("This method ran on the server upon the request of a client");
46
46
}
47
47
48
48
[ClientRPC]
49
49
privatevoidMyClientRPC(intnumber)
50
50
{
51
-
Debug.Log("The number recieved was: "+number);
51
+
Debug.Log("The number received was: "+number);
52
52
Debug.Log("This method ran on the client upon the request of the server");
53
53
}
54
54
```
@@ -83,9 +83,9 @@ public float MyRpcWithReturnValue(float x, float y)
83
83
To use the performance mode, the RPC method require the following signature ``void (ulong clientId, Stream readStream)`` and the sender is required to use the non generic Stream overload.
0 commit comments