Simulations like eternal-action need to listen for messages from clients. We need a standardized way of allowing clients to communicate with simulation loops.
There are four libraries involved here:
synk has the Client type and the Handler type that manages WebSocket communication
The main library such as eternal that defines the data structures we will be working with.
The http/websocket executable. This is where we handle messages from user-agent clients.
Simulation loop are updating structures.
Needs:
We need a way to send messages from '3' to '4'.
Using Redis as a message broker is probably easiest.
Needs a way to handle and identify incoming messages
If we use Redis as a communication protocol, we will need serialize messages from '3' to '4'.
Simulations like
eternal-action
need to listen for messages from clients. We need a standardized way of allowing clients to communicate with simulation loops.There are four libraries involved here:
synk
has theClient
type and theHandler
type that manages WebSocket communicationeternal
that defines the data structures we will be working with.http/websocket
executable. This is where we handle messages from user-agent clients.Needs:
We need a way to send messages from '3' to '4'.
Using Redis as a message broker is probably easiest.
Needs a way to handle and identify incoming messages
If we use Redis as a communication protocol, we will need serialize messages from '3' to '4'.