Project:M36 WebSocket Server
February 5, 2020 ยท View on GitHub
Purpose
The Project:M36 WebSocket server makes it easy to connect non-Haskell programs to the Project:M36 database. This server operates as a proxy to an actual Project:M36 database.
Setup
The websocket server is started with the same arguments as the normal Project:M36 server:
cabal run project-m36-websocket-server -- --database mydbname --hostname 127.0.0.1
except that the websocket server is now listening for websocket connections on port 8888.
Client Connection
A simple JavaScript library to manage the WebSocket connection is available.
Sample Application
The WebSocket example application can be used to learn TutorialD and for remote database access from the web browser.