Open
Description
I've been attempting to understand how to I could wait on my own socket connection to another server, before triggering some computercraft command, however I keep running into issues with greenlet. As I understand it, I can't call any computercraft functions form another coroutine listening to a socket, otherwise I'll encounter the error 'Computercraft function was called outside context'.
If I did find some way to wait for the signal in the current greenlet, then I assume I'd be blocking communication with the computercraft computer.
As a proof of concept, I just want to trigger a redstone signal using a websocket connection with a separate server. Is there any simple approach to this?
Metadata
Metadata
Assignees
Labels
No labels