}
/**
- * Create singleton instance of {@link WebSocketServer}
+ * Create singleton instance of {@link WebSocketServer}.
*
* @param port TCP port used for this server
* @return instance of {@link WebSocketServer}
}
/**
+ * Get the websocket of TCP port.
+ *
* @return websocket TCP port
*/
public int getPort() {
}
/**
- * Get instance of {@link WebSocketServer} created by {@link #createInstance(int)}
+ * Get instance of {@link WebSocketServer} created by {@link #createInstance(int)}.
*
* @return instance of {@link WebSocketServer}
*/
}
/**
- * Destroy the existing instance
+ * Destroy the existing instance.
*/
public static void destroyInstance() {
Preconditions.checkState(instance != null, "createInstance() must be called prior to destroyInstance()");