All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.websocket.Session Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
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