Skip to content

This an improved version of the simple-websocket-setup project. Demonstrates the use of independent signal source.

Notifications You must be signed in to change notification settings

cryptoeraser/simple-websocket-externalData

Repository files navigation

simple-websocket-externalData

This an improved version of the simple-websocket-setup project. The aim is to demonstrate the use of an independent signal source.

Final Product

A still from the final product.

The Data Writer

This tiny script is responsible for generating a mock JSON file stream that is saved and constantly updated inside a ./data/object.json file. The purpose here is mimicing an independent data stream that can be anything: data coming from an exchange, a sensor reading, anything.

Sample Result

Demo results for the data_writer tool.

The Server/Client Application

The server/client workflow.

This is the final state of my WebSocket test project. The aim was to build a simple server/client application that is capable of collecting, processing and exchanging data.

The stream in this case-study is just mock data being written to a JSON file. The data stream could have been anything from market data to a sensor stream.

The server is capable of processing the incoming data and passing it to the client. In return, the client is able to send messages to the server and alter the state of the data being emitted.

The right side of the UI demonstrates the client side input. Users can change the signature through the drop-down menu or simply send inputs to the server using the text-input box.

In this case "Signature" and "Input" are just there to demonstrate that data can be passed from the client to the server and the input will be returned to the user through the data stream.

Sample Result

Demo results for the server/client workflow.

Higher quality demo video is available on Vimeo.

Credits

Special thanks to: My mentor and friend Diego Perini

About

This an improved version of the simple-websocket-setup project. Demonstrates the use of independent signal source.

Resources

Stars

Watchers

Forks

Packages

No packages published