Class WebSocketImpl
java.lang.Object
org.noear.solon.net.websocket.WebSocketBase
org.noear.solon.boot.jetty.websocket.WebSocketImpl
- All Implemented Interfaces:
org.noear.solon.net.websocket.WebSocket
public class WebSocketImpl
extends org.noear.solon.net.websocket.WebSocketBase
- Since:
- 2.6
- Author:
- noear
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longbooleanisSecure()booleanisValid()send(ByteBuffer binary) voidsetIdleTimeout(long idleTimeout) Methods inherited from class org.noear.solon.net.websocket.WebSocketBase
attr, attr, attrHas, attrMap, attrOrDefault, id, init, isClosed, name, nameAs, param, param, paramMap, paramOrDefault, path, pathNew, url
-
Constructor Details
-
WebSocketImpl
public WebSocketImpl(org.eclipse.jetty.websocket.api.Session real)
-
-
Method Details
-
isValid
public boolean isValid() -
isSecure
public boolean isSecure() -
remoteAddress
- Throws:
IOException
-
localAddress
- Throws:
IOException
-
getIdleTimeout
public long getIdleTimeout() -
setIdleTimeout
public void setIdleTimeout(long idleTimeout) -
send
-
send
-
close
public void close()- Specified by:
closein interfaceorg.noear.solon.net.websocket.WebSocket- Overrides:
closein classorg.noear.solon.net.websocket.WebSocketBase
-