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

io.baltoro.client.BaltoroClientEndpoint_old Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package io.baltoro.client;

public class BaltoroClientEndpoint_old
{

	/*
	private Logger log = Logger.getLogger(this.getClass().getName());
	private String appUuid;
	private String instanceUuid;
	private ClientManager clientManager;
	private ClientEndpointConfig config;
	private String url;
	
	
	public BaltoroClientEndpoint_old(String appUuid, ClientManager clientManager, ClientEndpointConfig config, String url)
	{
		this.appUuid = appUuid;
		this.clientManager = clientManager;
		this.config = config;
		this.url = url;
	}
	
	
	
	public void onOpen(Session session, EndpointConfig config)
	{
		log.info(" ******** Connected ... " + session.getId());
		
		session.addMessageHandler(new BaltoroTextMessageHandler(this.appUuid, this.instanceUuid,session));
		session.addMessageHandler(new BaltoroByteBufferMessageHandler_old(this.appUuid, this.instanceUuid, session));
		//session.addMessageHandler(new BaltoroPingMessageHandler(this.appUuid, this.instanceUuid, session));
	}
	
	



	@OnClose
	public void onClose(javax.websocket.Session session, CloseReason closeReason)
	{
		
		WSSessions.get().removeSession(session);
		
		
		//log.info(String.format("Session close because of %s", closeReason));
		try
		{
			//Session _session = clientManager.connectToServer(this, config, new URI(url));
			log.info(String.format("Session %s close because of %s", session, closeReason));
		} 
		catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}
	
	*/

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy