When you run the SDK in-process, connect to OnlyFans’ realtime stream directly with a short-lived auth token.Documentation Index
Fetch the complete documentation index at: https://docs.onlyfanskit.dev/llms.txt
Use this file to discover all available pages before exploring further.
users.authToken() again before it expires and reconnecting.
Event handling
onEvent receives each decoded event. Branch on evt.api for the event type
(newMessage, and others). Keep the handler fast — offload heavy work to a
queue so you don’t block the socket.