@Override
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
wampMessageSender.put(session.getId(), session);
WelcomeMessage welcomeMessage = new WelcomeMessage(session.getId(), SERVER_IDENTIFIER);
session.sendMessage(new TextMessage(welcomeMessage.toJson(jsonFactory)));
}
@Override
public void handleMessage(WebSocketSession session, WebSocketMessage<?> webSocketMessage) throws Exception {
Assert.isInstanceOf(TextMessage.class, webSocketMessage);