Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```