Skip to content

Commit

Permalink
fix !WebGL Platform Build Error (v2.4.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlong committed Oct 19, 2020
1 parent b359962 commit 406587e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Scripts/Runtime/Core/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static class Settings
public const string QQ_GROUP_LINK = "https://qm.qq.com/cgi-bin/qm/qr?k=KcexYJ9aYwogFXbj2aN0XHH5b2G7ICmd";
public const string EMAIL = "799329256@qq.com";
public const string AUHTOR = "psygame";
public const string VERSION = "2.4.4";
public const string VERSION = "2.4.5";
public const string PACKAGE_NAME = "com.psygame.unitywebsocket";
public const string UPM_URL = "https://github.com/psygame/UnityWebSocket.git";
}
Expand Down
2 changes: 2 additions & 0 deletions Scripts/Runtime/Implementation/WebGL/WebSocket.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if UNITY_EDITOR || UNITY_WEBGL
using System;

namespace UnityWebSocket.WebGL
Expand Down Expand Up @@ -84,3 +85,4 @@ public void SendAsync(byte[] data)
}
}
}
#endif
6 changes: 4 additions & 2 deletions Scripts/Runtime/Implementation/WebGL/WebSocketManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
#if UNITY_EDITOR || UNITY_WEBGL
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using AOT;
Expand Down Expand Up @@ -169,4 +170,5 @@ public static string GetErrorMessageFromCode(int errorCode)
}
}
}
}
}
#endif
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.psygame.unitywebsocket",
"displayName": "UnityWebSocket",
"version": "2.4.4",
"version": "2.4.5",
"unity": "2018.3",
"description": "The Best Unity WebSocket Plugin for All Platforms.",
"keywords": [
Expand Down

0 comments on commit 406587e

Please sign in to comment.