Spring Boot WebSocket ChatController with STOMP MessagingSpring Boot WebSocket ChatController with STOMP Messaging
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
ChatController - Handling Real-Time Messages.
This is the main controller of my TickChat application.
Features:
@MessageMapping to receive messages.
@SendTo broadcast messages to all users.
Saves chat messages in database (except JOIN type).
Adds timestamp automatically.
REST endpoint to fetch chat history.
Tech: Spring Boot + WebSocket + STOMP
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started