Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JetStream support #56

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Add JetStream support #56

merged 1 commit into from
Sep 26, 2024

Conversation

drasticactions
Copy link
Owner

This PR supports JetStream using the new ATJetStream class.

For example:

var atWebProtocolBuilder = new ATJetStreamBuilder()
    .WithLogger(debugLog.CreateLogger("FishyFlipDebug"));
var atWebProtocol = atWebProtocolBuilder.Build();

atWebProtocol.OnConnectionUpdated += (sender, e) =>
{
    Console.WriteLine($"Connection Status: {e.State}");
};

atWebProtocol.OnRawMessageReceived += (sender, e) =>
{
    Console.WriteLine($"Raw Message: {e.MessageJson}");
};

atWebProtocol.OnRecordReceived += (sender, e) =>
{
    Console.WriteLine($"Record Received: {e.Record}");
};

await atWebProtocol.ConnectAsync();

var key = Console.ReadKey();

await atWebProtocol.CloseAsync();

@drasticactions drasticactions merged commit 4a5a1b2 into develop Sep 26, 2024
1 check passed
@drasticactions drasticactions deleted the jetstream branch September 26, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant