1
This commit is contained in:
@@ -15,8 +15,10 @@ namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
public void OnMessage(WebSocket web, string msg, SocketType type)
|
||||
{
|
||||
|
||||
#if UNITY_EDITOR
|
||||
Debug.Log($"[WebSocket] {type} 收到消息: {msg}");
|
||||
|
||||
#endif
|
||||
string[] msgs = msg.Split('\u001e');
|
||||
foreach (var item in msgs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user