Add constructors and Javadoc comments to improve clarity and completeness across server components, including WebSocket and routing classes.
This commit is contained in:
@@ -66,6 +66,8 @@ public final class WebSocketSession {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the unique identifier generated for this session.
|
||||
*
|
||||
* @return the unique session id
|
||||
*/
|
||||
public String id() {
|
||||
@@ -73,6 +75,8 @@ public final class WebSocketSession {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the path the connection was established on.
|
||||
*
|
||||
* @return the path the connection was established on
|
||||
*/
|
||||
public String path() {
|
||||
@@ -90,6 +94,8 @@ public final class WebSocketSession {
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether the connection is still open.
|
||||
*
|
||||
* @return {@code true} if the underlying channel is still active (open)
|
||||
*/
|
||||
public boolean isOpen() {
|
||||
@@ -111,6 +117,8 @@ public final class WebSocketSession {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the underlying Netty channel for advanced, low-level use.
|
||||
*
|
||||
* @return the underlying Netty channel, for advanced use
|
||||
*/
|
||||
public Channel channel() {
|
||||
|
||||
Reference in New Issue
Block a user