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

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

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

import javax.websocket.MessageHandler;
import javax.websocket.PongMessage;
import javax.websocket.Session;

public class BaltoroPingMessageHandler implements MessageHandler.Whole
{
	
	private Session session;
	private String appUuid;
	private String instanceUuid;
	
	public BaltoroPingMessageHandler(String appUuid, String instanceUuid, Session session)
	{
		this.session = session;
		this.appUuid = appUuid;
		this.instanceUuid = instanceUuid;
	}

	@Override
	public void onMessage(PongMessage msg)
	{
		System.out.println(" ===> got ping back -> "+new String(msg.getApplicationData().array()));
		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy