Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 927 Bytes

README.org

File metadata and controls

30 lines (20 loc) · 927 Bytes

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