TikTok-Live-Connector: Error: TikTok does not offer a websocket upgrade. Please provide a valid `sessionId` to use request polling instead

Error: TikTok does not offer a websocket upgrade. Please provide a valid sessionId to use request polling instead

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Ever try this?

const tiktok = new WebcastPushConnection(username, {
    sessionId: 'put_your_session_id_here'
})

how to get session_Id?

  • open browser
  • go to tiktok.com
  • login
  • press F12
  • go to application tab
  • expand cookies
  • click on link
  • search session_id on that window