public void onMessage ( WSMessage message ) { log . trace ( "Listeners: {}" , listeners . size ( ) ) ; for ( IWebSocketDataListener listener : listeners ) { try { listener . onWSMessage ( message ) ; } catch ( Exception e ) { log . warn ( "onMessage exception" , e ) ; } } }
Message received from client and passed on to the listeners .