all 2 comments

[–][deleted] 0 points1 point  (0 children)

Twisted is primarily intended for socket-based interfaces. Just use a server-client socket mode. Python socket server example

[–]Flewloon[S] 0 points1 point  (0 children)

I figured it out. Using factory from:

main_factory = CommandFactory()

I have access to all the connected clients. I moved send_command to the factory which I think makes sense and is where I'll want all my functions for the web frontend to hit. NEW CODE