commit
18208a13aa
|
@ -17,7 +17,7 @@
|
|||
[[jetty-websocket-api-send-message]]
|
||||
=== Send Messages to Remote Endpoint
|
||||
|
||||
The most important feature of the Session is access to the link:{JDURL}/org/eclipse/jetty/websocket/api/RemoteEndpoint.html[`org.eclipse.jetty.websocket.api.RemoteEndpoint`]needed to send messages.
|
||||
The most important feature of the Session is access to the link:{JDURL}/org/eclipse/jetty/websocket/api/RemoteEndpoint.html[`org.eclipse.jetty.websocket.api.RemoteEndpoint`] needed to send messages.
|
||||
|
||||
With RemoteEndpoint you can choose to send TEXT or BINARY WebSocket messages, or the WebSocket PING and PONG control frames.
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ What was in the Upgrade Request and Response.
|
|||
UpgradeRequest req = session.getUpgradeRequest();
|
||||
String channelName = req.getParameterMap().get("channelName");
|
||||
|
||||
UpgradeRespons resp = session.getUpgradeResponse();
|
||||
UpgradeResponse resp = session.getUpgradeResponse();
|
||||
String subprotocol = resp.getAcceptedSubProtocol();
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue