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

feat(eventsub): create conduit websocket pool helper #955

Merged
merged 4 commits into from Apr 7, 2024

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented Apr 3, 2024

Prerequisites for Code Changes

  • This pull request follows the code style of the project
  • I have tested this feature

Changes Proposed

  • Fire EventSocketWelcomedEvent
  • Create TwitchConduitSocketPool

Additional Information

Follow-up to #923

Sample usage:

IEventSubConduit conduit = TwitchConduitSocketPool.create(spec -> {
    spec.clientId("your-client-id");
    spec.clientSecret("your-client-secret");
    spec.poolShards(4); // customizable pool size
});
conduit.register(SubscriptionTypes.STREAM_ONLINE, b -> b.broadcasterUserId("71092938").build());
conduit.getEventManager().onEvent(StreamOnlineEvent.class, System.out::println);

@iProdigy iProdigy merged commit 0e207ff into develop Apr 7, 2024
@iProdigy iProdigy deleted the feature/conduit-ws-pool branch April 7, 2024 19:23
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.

None yet

2 participants