Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pexmor/projector
Simple html project
https://github.com/pexmor/projector
javascript mosquitto mqtt websocket
Last synced: 10 days ago
JSON representation
Simple html project
- Host: GitHub
- URL: https://github.com/pexmor/projector
- Owner: PexMor
- License: mit
- Created: 2024-12-18T12:27:21.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2024-12-18T12:31:51.000Z (11 days ago)
- Last Synced: 2024-12-18T13:34:16.754Z (11 days ago)
- Topics: javascript, mosquitto, mqtt, websocket
- Language: Shell
- Homepage: https://pexmor.github.io/projector/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Websocket messaging
## static html serving
```bash
python -mhttp.server -d docs 8088
``````bash
php -S 8088
```## With Mosquitto is a MQTT friend
```bash
# you might add '-d' for demonizing it
mosquitto -c mosquitto.conf
``````bash
mosquitto_pub -h localhost -t test -m abc
``````bash
#
mosquitto_pub -h localhost -t to-projector -m '{"txt":"Pokus dnes '"`date`"'"}'
#
mosquitto_pub -h localhost -t to-projector -m '{"txt":"😀😆🥹😅😂🤣"}'
```## With PHP Websocket server
```bash
websocat ws://127.0.0.1:1884/chat
```