@ Override public void processTextMessage ( WebSocketChannel channel , String message ) { LOG . entering ( CLASS_NAME , "send" , message ) ; WebSocketCompositeChannel parent = ( WebSocketCompositeChannel ) channel ; if ( parent . readyState != ReadyState . OPEN ) { LOG . warning ( "Attempt to post message on unopened or closed web socket" ) ; throw new IllegalStateException ( "Attempt to post message on unopened or closed web socket" ) ; } WebSocketSelectedChannel selectedChannel = parent . selectedChannel ; selectedChannel . handler . processTextMessage ( selectedChannel , message ) ; }
Writes the message to the WebSocket .