接口 WebsocketSession
public interface WebsocketSession
-
方法概要
-
方法详细资料
-
getId
String getId()Provides a unique identifier for the session. This identifier should not be relied upon to be generated from a secure random source.- 返回:
- A unique identifier for the session.
-
close
Close the connection to the remote end point using the codejavax.websocket.CloseReason.CloseCodes#NORMAL_CLOSUREand an empty reason phrase.- 抛出:
IOException- if an I/O error occurs while the WebSocket session is being closed.
-
send
- 抛出:
IOException
-