com.ramblingwood.minecraft.jsonapi.api
Interface JSONAPIStreamListener
public interface JSONAPIStreamListener
A way to programatically "subscribe" to streams.
- Author:
- alecgorge
onMessage
void onMessage(JSONAPIStreamMessage message,
JSONAPIStream sender)
- Called every time there is a new message from the stream.
- Parameters:
message
- The message from the stream. You will likely need to cast this to the correct subclass of JSONAPIStreamMessage to use all the features.sender
- The JSONAPIStream instance that pushed this message.