private void invokeTextHandler(final BufferedTextMessage data, final HandlerWrapper handler, final boolean finalFragment) {
session.getContainer().invokeEndpointMethod(new Runnable() {
@Override
public void run() {
MessageHandler mHandler = handler.getHandler();
final String message = data.getData();
if (mHandler instanceof MessageHandler.Partial) {
if (handler.getMessageType() == String.class) {
((MessageHandler.Partial) handler.getHandler()).onMessage(message, finalFragment);