Skip to content

Commit

Permalink
fix: added MaxPacketSize to SteamSocketFactory
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Mirage 120.0.0 or newer
  • Loading branch information
phodoval committed May 11, 2022
1 parent ae33e32 commit e63c01b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class SteamSocketFactory : SocketFactory {
[Tooltip("Set this to false if you want to run Steam callbacks yourself.")]
public bool RunCallbacks = true;

public override int MaxPacketSize => 1200;

void Awake() {
GetComponent<NetworkClient>().PeerConfig = new Config {
ConnectAttemptInterval = 1f,
Expand Down
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"url": "https://github.com/MirageNet/SteamyFaceNG.git"
},
"dependencies": {
"com.miragenet.mirage": "99.0.2"
"com.miragenet.mirage": "120.0.0"
}
}

0 comments on commit e63c01b

Please sign in to comment.