Browser & Node.JS cross-compatible module for the Euler Stream WebSocket service.
npm install @eulerstream/euler-websocket-sdkThis is an SDK for the Euler Stream WebSocket API written in TypeScript.


!Connections
!Stars
!Issues
![]() | Euler Stream is a paid TikTok LIVE service providing managed TikTok LIVE WebSocket connections, increased access, TikTok LIVE alerts, JWT authentication and more. |
Join the EulerStream discord for questions, concerns, or just a good chat.
npm i EulerStream/Euler-WebSocket-SDK
1. Provides importable TypeScript types for all NodeJS library schemas
2. Provides createWebSocketURL for creating a WebSocket URL for a given account
3. Provides utility functions for encoding & decoding protobuf messages
4. Close codes for WebSocket connections
``ts
export enum ClientCloseCode {
// Standard Codes
INTERNAL_SERVER_ERROR = 1011,
NORMAL = 1000,
// Custom Codes (Must be 4000 to 4999)
TIKTOK_CLOSED_CONNECTION = 4500,
TOO_MANY_CONNECTIONS = 4429,
INVALID_OPTIONS = 4401,
NOT_LIVE = 4404,
STREAM_END = 4005
}
``