@mashroom/mashroom-portal-demo-remote-messaging
v1.6.4
Published
Simple app that demonstrates remote messaging
Downloads
31
Readme
Mashroom Portal Demo Remote Messaging App
Plugin for Mashroom Server, a Integration Platform for Microfrontends.
Adds a demo portal app (SPA) to demonstrate the remote messaging capabilities. This app requires the mashroom-messaging and mashroom-websocket plugins to be installed.
Usage
If node_modules/@mashroom is configured as plugin path just add @mashroom/mashroom-portal-demo-remote-messaging as dependency.
After adding the app to a page you can send a message to another user (or another browser tab) by using the (remote) topic user/<other-username>/. And the app will automatically subscribe the topic user/<your_username>/# to receive all user messages.