Skip to content

Commit

Permalink
opl-#3 Fix for lags occuring when using websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
mijago committed Oct 1, 2020
1 parent a8be8e5 commit 0b8de05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BeatSaberHTTPStatus/HTTPServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected override void OnOpen() {
eventJSON["time"] = new JSONNumber(Plugin.GetCurrentTime());
eventJSON["status"] = statusManager.statusJSON;

Send(eventJSON.ToString());
SendAsync(eventJSON.ToString(), b => {});
}

protected override void OnClose(CloseEventArgs e) {
Expand Down Expand Up @@ -108,7 +108,7 @@ public void OnStatusChange(StatusManager statusManager, ChangedProperties change
eventJSON["beatmapEvent"] = statusManager.beatmapEventJSON;
}

Send(eventJSON.ToString());
SendAsync(eventJSON.ToString(), b => {});
}
}
}

0 comments on commit 0b8de05

Please sign in to comment.