From e63c01b22f42371a7737c3067a0856d526d8ccc4 Mon Sep 17 00:00:00 2001 From: Pavel Hodoval Date: Wed, 11 May 2022 20:09:53 +0200 Subject: [PATCH] fix: added MaxPacketSize to SteamSocketFactory BREAKING CHANGE: Requires Mirage 120.0.0 or newer --- .../Mirage/Runtime/Sockets/FacepunchSteam/SteamSocketFactory.cs | 2 ++ Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Mirage/Runtime/Sockets/FacepunchSteam/SteamSocketFactory.cs b/Assets/Mirage/Runtime/Sockets/FacepunchSteam/SteamSocketFactory.cs index d29e69c..3319d7b 100644 --- a/Assets/Mirage/Runtime/Sockets/FacepunchSteam/SteamSocketFactory.cs +++ b/Assets/Mirage/Runtime/Sockets/FacepunchSteam/SteamSocketFactory.cs @@ -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().PeerConfig = new Config { ConnectAttemptInterval = 1f, diff --git a/Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json b/Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json index 81de389..9d6b08e 100644 --- a/Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json +++ b/Assets/Mirage/Runtime/Sockets/FacepunchSteam/package.json @@ -10,6 +10,6 @@ "url": "https://github.com/MirageNet/SteamyFaceNG.git" }, "dependencies": { - "com.miragenet.mirage": "99.0.2" + "com.miragenet.mirage": "120.0.0" } }