Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajasharan/elm-mice
Multi Cursor simulation via WebSockets - built with elm
https://github.com/rajasharan/elm-mice
Last synced: 3 days ago
JSON representation
Multi Cursor simulation via WebSockets - built with elm
- Host: GitHub
- URL: https://github.com/rajasharan/elm-mice
- Owner: rajasharan
- License: mit
- Created: 2016-06-26T20:44:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-26T20:52:19.000Z (over 8 years ago)
- Last Synced: 2023-03-12T06:04:02.751Z (over 1 year ago)
- Homepage: http://bit.do/elm-mice
- Size: 232 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multi Cursor simulation via WebSockets - built with `elm`
### Dev setup
```sh
$ npm install -g elm
$ git clone https://github.com/rajasharan/elm-mice
$ cd elm-mice$ elm reactor
Listening on http://localhost:8000/
```### Full compilation
```sh
$ elm make Main.elm --output elm.js# Run local webserver using lite-server or python or any framework of choice
# Navigate to index.html where the local server is deployed
$ npm install -g lite-server
$ lite-server
Localhost Started on 3001
```### Broadcast to Multiple Users via WebSockets
```sh
$ cd server
$ npm install
$ node server.js
WebSocketServer started on port 3000
```## Connect to WebSocket Server
```html
Now append the : as a hash Location
For e.g: http://rajasharan.github.io/elm-mice/#ws://192.168.X.XX:3000
``````html
Or if the elm frontend server is running in localhost:2000 and websocket server in localhost:3000
then url is: http://localhost:2000/#ws://localhost:3000Open in multiple browsers to test.
```### [License](/LICENSE)
The MIT License (MIT)