Class ChatController

java.lang.Object
sk.gursky.films.websocket.ChatController

@Controller
public class ChatController
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ChatController()  
  • Method Summary

    Modifier and Type Method Description
    Greeting greeting​(HelloMessage message)  
    Message message​(Message message)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • greeting

      @MessageMapping("/hello") @SendTo("/topic/greetings") public Greeting greeting​(HelloMessage message) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • message

      @MessageMapping("/message") @SendTo("/topic/messages") public Message message​(Message message) throws java.lang.Exception
      Throws:
      java.lang.Exception