org.eclipse.jetty.websocket
接口 WebSocket.OnTextMessage

所有超级接口:
WebSocket
正在封闭接口:
WebSocket

public static interface WebSocket.OnTextMessage
extends WebSocket

A nested WebSocket interface for receiving text messages


嵌套类摘要
 
从接口 org.eclipse.jetty.websocket.WebSocket 继承的嵌套类/接口
WebSocket.Connection, WebSocket.FrameConnection, WebSocket.OnBinaryMessage, WebSocket.OnControl, WebSocket.OnFrame, WebSocket.OnTextMessage
 
方法摘要
 void onMessage(String data)
          Called with a complete text message when all fragments have been received.
 
从接口 org.eclipse.jetty.websocket.WebSocket 继承的方法
onClose, onOpen
 

方法详细信息

onMessage

void onMessage(String data)
Called with a complete text message when all fragments have been received. The maximum size of text message that may be aggregated from multiple frames is set with WebSocket.Connection.setMaxTextMessageSize(int).

参数:
data - The message


Copyright © 2013. All Rights Reserved.