Skip to content

Commit

Permalink
fix remove binary type
Browse files Browse the repository at this point in the history
  • Loading branch information
psygames committed Aug 23, 2024
1 parent e51a45c commit a35fcf4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static class WebSocketManager

/* WebSocket JSLIB callback setters and other functions */
[DllImport("__Internal")]
public static extern int WebSocketAllocate(string url, string binaryType);
public static extern int WebSocketAllocate(string url);

[DllImport("__Internal")]
public static extern int WebSocketAddSubProtocol(int instanceId, string protocol);
Expand Down Expand Up @@ -127,10 +127,10 @@ public static void DelegateOnCloseEvent(int instanceId, int closeCode, IntPtr re
}
}

internal static int AllocateInstance(string address, string binaryType)
internal static int AllocateInstance(string address)
{
if (!isInitialized) Initialize();
return WebSocketAllocate(address, binaryType);
return WebSocketAllocate(address);
}

internal static void Add(WebSocket socket)
Expand Down

0 comments on commit a35fcf4

Please sign in to comment.