Package com.nadiyar.kiwi.controller
Class ChatWebsocketController
java.lang.Object
com.nadiyar.kiwi.controller.ChatWebsocketController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(MessageDTO msgDTO) Websocket endpoint for receiving and handling new messages
-
Constructor Details
-
ChatWebsocketController
public ChatWebsocketController()
-
-
Method Details
-
send
Websocket endpoint for receiving and handling new messagesThis endpoint listens on the URI
/chat.send. clients can send text messages that are saved in database and broadcast to all clients.usage example
wss://example.com/chat.send
- Parameters:
MessageDTO- must contain content and sentBy
-