This is an SDK for the Euler Stream WebSocket API written in TypeScript.
![]() |
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
- Provides importable TypeScript types for all NodeJS library schemas
- Provides
createWebSocketURL
for creating a WebSocket URL for a given account - Provides utility functions for encoding & decoding protobuf messages
- Close codes for WebSocket connections
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
}