Skip to content

dotspencer/mqtt-ws-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple mqtt to ws proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published