Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 560 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 560 Bytes

mqtt-ws-proxy

A simple mqtt to ws proxy. Connects to a mqtt server, acts as a ws server itself, and forwards received mqtt messages to all connected ws clients.

Setup

Create a .env file with the following info. Add ip address of the mqtt server on your network.

MQTT_SERVER="mqtt://192.168.xx.xx"
PROXY_SERVER="ws://192.168.xx.xx"
WS_PORT="7070"
EXPRESS_PORT="7171"

Run yarn to install dependencies.

Start

Run yarn server to start the proxy.

Run yarn test-client to start a client for testing that logs all received messages.