1d4afb5ceSopenharmony_ci# lws minimal ws broker 2d4afb5ceSopenharmony_ci 3d4afb5ceSopenharmony_ci## build 4d4afb5ceSopenharmony_ci 5d4afb5ceSopenharmony_ci``` 6d4afb5ceSopenharmony_ci $ cmake . && make 7d4afb5ceSopenharmony_ci``` 8d4afb5ceSopenharmony_ci 9d4afb5ceSopenharmony_ci## usage 10d4afb5ceSopenharmony_ci 11d4afb5ceSopenharmony_ci``` 12d4afb5ceSopenharmony_ci $ ./lws-minimal-ws-broker 13d4afb5ceSopenharmony_ci[2018/03/15 12:23:12:1559] USER: LWS minimal ws broker | visit http://localhost:7681 14d4afb5ceSopenharmony_ci[2018/03/15 12:23:12:1560] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off 15d4afb5ceSopenharmony_ci``` 16d4afb5ceSopenharmony_ci 17d4afb5ceSopenharmony_ciVisit http://localhost:7681 on multiple browser windows 18d4afb5ceSopenharmony_ci 19d4afb5ceSopenharmony_ciThe page opens a subscribe mode ws connection back to the broker, 20d4afb5ceSopenharmony_ciand a publisher mode ws connection back to the broker. 21d4afb5ceSopenharmony_ci 22d4afb5ceSopenharmony_ciThe textarea shows the data from the subscription connection. 23d4afb5ceSopenharmony_ci 24d4afb5ceSopenharmony_ciIf you type text is in the text box and press send, the text 25d4afb5ceSopenharmony_ciis passed to the broker on the publisher ws connection and 26d4afb5ceSopenharmony_cisent to all subscribers. 27