React - Spring-Boot Websocket.
Developed and maintained with 🥰 by Rancard Solutions.
A declarative library based on Typescript to easily connect to server through websocket using the STOMP protocal.
Installation
To install the library kindly run npm install react-spring-websocket
or
yarn add react-spring-websocket
in your terminal
Import
Usage
// create a socket connectionconst socket = "socket-enpoint-1" "subscriptionEndpoint1" "subscriptionEndpoint2" "sub..." { console } // create a socket connection 2const socket2 = "socket-enpoint-2" "subscriptionEndpoint3" "subscriptionEndpoint4" "sub..." { console } //Send Messagesocket socket2