@ Override public boolean sendMessageToClient ( MessageFromClient message , Session client ) { MessageToClient mtc = messageToClientService . createMessageToClient ( message , client ) ; if ( mtc != null ) { client . getAsyncRemote ( ) . sendObject ( mtc ) ; return true ; } return false ; }
Build and send response messages after call request