@ Controller ( events = EventType . PIN_ADDED ) public void onPinAdded ( WebSocketSession session , Event event ) { reply ( session , event , "Thanks for the pin! You can find all pinned items under channel details." ) ; }
Invoked when an item is pinned in the channel .