WebSocket-for-Python icon indicating copy to clipboard operation
WebSocket-for-Python copied to clipboard

Sending a specific message on a timer

Open vaindil opened this issue 8 years ago • 0 comments

Hello! This library looks awesome, thank you for it!

I'm writing a small program to stay connected to Twitch's Pubbub system, and it's working beautifully. The only thing I can't figure out is pinging.

Twitch requires that a message be sent at least once every five minutes in the format below or the client will be disconnected. What would be the proper way to implement this?

{
    "type": "PING"
}

vaindil avatar Oct 26 '16 02:10 vaindil