⚡Quick Start
Setup Build Tools (Maven or Gradle)
Connect to NATS server
Register message handler
PacketID in packet and message handler must be same to handle action
As you can see in constructor we've two values. First is packet id and second is channel name
TestMessageHandler.java
Register handler
Publish message
Here we're setting packetId to 1 and channel to test with payload - string also test
Last updated