package edu.stanford.prpl.junction.sample.datalog;

import java.io.IOException;

import edu.stanford.prpl.junction.api.JunctionCallback;
import edu.stanford.prpl.junction.api.object.InboundObjectStream;

public class DatalogCallback extends JunctionCallback {

	public void onMessageReceived(InboundObjectStream stream) {
		try {
			Object obj;
			while (null != (obj = stream.receive())) {
				System.out.println("Got: " + obj.toString());
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

}

@@ -412,10 +412,26 @@
 ln(%22
-Go
+Callback got resul
 t: %22

debug cleanup