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.6.8
Show newest version
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