Python/Django/React Application.

WebSocket Implementation, via React on the client side and Channels WebSocket Consumer on the server side.

The purpose of this simulation is to demonstrate the WebSocket functionality. WebSocket Consumer is currently synchronous, but asynchronous capability can be implemented.

The Context is the client requesting an app to open a Lighting Channel with another LN Node and the simulation of the response.

Page loads and automatically establishes a WebSocket.

Server responds and app waits for Button to be clicked to start the Open Channel process.

Button activation sends client request to app to simulate directing an LN Node to open a channel with another LN node. The Open Channel request will receive a streaming response. That streaming response is simulated via time delays on the server side. The simulated response is forwarded to the Client upon receipt via the WebSocket and React updates the status.