Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
austinmilt committed Dec 1, 2024
1 parent 7fc5608 commit eac754a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/BizHawk.Client.Common/lua/CommonLibs/CommLuaLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,24 +258,19 @@ private void CheckHttp()
[LuaMethodExample("local ws_id = comm.ws_open(\"wss://echo.websocket.org\");")]
public async Task<string> WebSocketOpen(string uri, string guid = null, int bufferSize = 1024, int maxMessages = 20)
{
Log($"Opening websocket server {uri}");
var wsServer = APIs.Comm.WebSockets;
if (wsServer == null)
{
Log("WebSocket server is not available");
return null;
}
var localGuid = guid == null ? Guid.NewGuid() : Guid.Parse(guid);
Log($"Server ID is {localGuid}");
if (guid == null)
{
Log($"OK here we go, connecting in pt 1");
_websockets[localGuid] = wsServer.Open(new Uri(uri));
await _websockets[localGuid].Connect(bufferSize, maxMessages);
}
else
{
Log($"OK here we go, connecting in pt 2");
await _websockets[localGuid].Connect(bufferSize, maxMessages);
}
return localGuid.ToString();
Expand Down

0 comments on commit eac754a

Please sign in to comment.