streamaserver/streama

[Feature request] Socket control

Open

#796 aperta il 10 mag 2019

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (977 fork)batch import
Help wanted

Metriche repository

Star
 (9565 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I was wondering if it would be possible to use socket to control certain parts of the application. I am designing my own bot in python and would like to have it start a new video session for synced video watching. (right now i just have the bot open a browser and have it do everything in the browser, which eats CPU)

I just figured that socket would be the way to go for this, like Streama would have it's own key for verification, and you would send the key + the command to the socket, and have it execute a function.

So like this: Python code: Send - 'hQNX3To86NjvqtCx' + ':' + 'Do_this' Streama code: Recv - 'hQNX3To86NjvqtCx:Do_this' then split it with the colon, check the key and run the command

Guida contributor