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 gxwebsocket Show documentation
Show all versions of gxwebsocket Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
package com.genexus.websocket;
import javax.websocket.RemoteEndpoint;
import java.io.IOException;
public class Session implements ISession{
private javax.websocket.Session session;
public Session(javax.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