Skip to content

Repository for library that reads from StreamElements websocket event server.

License

Notifications You must be signed in to change notification settings

Chippalrus/StreamElementsNET.Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StreamElementsNET.Unity

StreamElementsNET for Unity that uses NativeWebSocket instead of WebSocket4Net

Required Libraries

Forked Libraries

Usage for Unity

private StreamElementsNET.Unity.Client streamElements;

void Start()
{
    streamElements = new StreamElementsNET.Unity.Client( "<JWT-TOKEN>" );
    streamElements.OnConnected += StreamElements_OnConnected;
    streamElements.OnAuthenticated += StreamElements_OnAuthenticated;
    streamElements.OnFollower += StreamElements_OnFollower;
    streamElements.OnSubscriber += StreamElements_OnSubscriber;
    streamElements.OnHost += StreamElements_OnHost;
    streamElements.OnTip += StreamElements_OnTip;
    streamElements.OnCheer += StreamElements_OnCheer;
    streamElements.OnAuthenticationFailure += StreamElements_OnAuthenticationFailure;
    streamElements.OnReceivedRawMessage += StreamElements_OnReceivedRawMessage;
    streamElements.OnSent += StreamElements_OnSent;

    streamElements.Connect();
}

void Update()
{
    streamElements.DispatchMessageQueue();
}

StreamElementsNET

StreamElementsNET by @swiftyspiffy

About

Repository for library that reads from StreamElements websocket event server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%