com.genexus.websocket.Session Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxwebsocketjakarta Show documentation
Show all versions of gxwebsocketjakarta Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
package com.genexus.websocket;
import jakarta.websocket.RemoteEndpoint;
import java.io.IOException;
public class Session implements ISession {
private jakarta.websocket.Session session;
public Session(jakarta.websocket.Session session) {
this.session = session;
}
public Integer getHashCode() {
return new Integer(session.hashCode());
}
public String getId() {
return session.getQueryString();
}
public boolean isOpen() {
return session.isOpen();
}
public void sendEndPointText(String message) throws IOException {
RemoteEndpoint.Basic endPoint = session.getBasicRemote();
endPoint.sendText(message);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy