Skip to content

Redirect YouTube livestream Chat messages via Websocket

Notifications You must be signed in to change notification settings

Cj-bc/yochat2ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Live Chat to Websocket

Broadcast live chat messages via websocket.

Usage

Start server by executing command

$ go run -- --port PORT

Then, Send a websocket request like this:

Full YouTube linkhttp://YOUR_SERVER_ID:PORT/watch?url=https://www.youtube.com/watch?v=xvCefQ_-jqc
Only with broadcastIdhttp://YOUR_SERVER_ID:PORT/watch?broadcastId=xvCefQ_-jqc

You will receive messages in JSON format

To disconnect, send “BYE” string to the socket.

Query parameters

NOT IMPLEMENTED YET

You have to provide either url or broadcastId query parameter. Also, you can provide some optional query parameters:

query parameterdescriptionpossible values
formatSpecify format of outputjson~/~csv

How to set YouTube Data API key

About

Redirect YouTube livestream Chat messages via Websocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages