on 94_atomfunctionatoms help sign in
project-m36/docs/websocket_server.markdown
23 lines 875 B history raw
1# Project:M36 WebSocket Server
3## Purpose
5The 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.
7## Setup
9The websocket server is started with the same arguments as the normal [Project:M36 server](docs/server_mode.markdown):
11```
12cabal run project-m36-websocket-server -- --database mydbname --hostname 127.0.0.1
13```
15except that the websocket server is now listening for websocket connections on port 8888.
17## Client Connection
19A [simple JavaScript library](/ProjectM36/Server/WebSocket/project-m36.js) to manage the WebSocket connection is available.
21## Sample Application
23The [WebSocket example application](/ProjectM36/Server/WebSocket/websocket-client.html) can be used to learn TutorialD and for remote database access from the web browser.