Add IRealtimeUpstream + RealtimeEvents helpers for upstream JSON
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace backend.Realtime;
|
||||
|
||||
public interface IRealtimeUpstream : IAsyncDisposable
|
||||
{
|
||||
Task SendJsonAsync(JsonObject envelope, CancellationToken ct);
|
||||
Task<JsonObject?> ReceiveJsonAsync(CancellationToken ct);
|
||||
}
|
||||
Reference in New Issue
Block a user