streamaserver/streama

[Feature request] Socket control

Open

#796 创建于 2019年5月10日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)JavaScript (9,565 star) (977 fork)batch import
Help wanted

描述

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

贡献者指南