@Override
    public Object onText(WsRequest wsRequest, String text, ChannelContext channelContext) throws Exception {
        log.debug("onText");
        TioWebsocketMethodMapper onText = methods.getOnText();
        if (onText != null) {
            onText.getMethod().invoke(onText.getInstance(), channelContext, text);
        } else {
            TioWebsocketMethodMapper onBeforeText = methods.getOnBeforeText();
            if (onBeforeText != null) {
                TioWebsocketRequest invoke = (TioWebsocketRequest) onBeforeText.getMethod().invoke(onBeforeText.getInstance(), channelContext, text);
                onMapEvent(invoke, channelContext);
            }
        }
        return null;
    }
@ Override public Object onText ( WsRequest wsRequest , String text , ChannelContext channelContext ) throws Exception { log . debug ( "onText" ) ; TioWebsocketMethodMapper onText = methods . getOnText ( ) ; if ( onText != null ) { onText . getMethod ( ) . invoke ( onText . getInstance ( ) , channelContext , text ) ; } else { TioWebsocketMethodMapper onBeforeText = methods . getOnBeforeText ( ) ; if ( onBeforeText != null ) { TioWebsocketRequest invoke = ( TioWebsocketRequest ) onBeforeText . getMethod ( ) . invoke ( onBeforeText . getInstance ( ) , channelContext , text ) ; onMapEvent ( invoke , channelContext ) ; } } return null ; }
receive text
@param wsRequest wsRequest
@param text String
@param channelContext channelContext
@return AnyObject
@throws Exception e