streamaserver/streama

[Feature request] Socket control

Open

#796 opened on May 10, 2019

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (977 forks)batch import
Help wanted

Repository metrics

Stars
 (9,565 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide