Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @MessageMapping("/getNotifications")
- @SendTo("/topic/notifications")
- public @ResponseBody List<NotificationResponse> getNotificationsWS(int size,
- SimpMessageHeaderAccessor headerAccessor, Principal principal) throws Exception {
- ActionResult<List<NotificationResponse>> notificationsAr;
- notificationsAr = this.listNotifications(size, principal);
- return notificationsAr.getResult();
- }
Add Comment
Please, Sign In to add comment