Interface StreamSubscriber<T>

  • Type Parameters:
    T - type of the streamed data

    public interface StreamSubscriber<T>
    A receiver of streaming events.
    • Method Detail

      • onData

        default void onData​(ServerMethod method,
                            StreamData<T> data)
        Method to be invoked when data is received on the stream.
        Parameters:
        method - the streaming method, never null
        data - the stram data, never null
        Since:
        1.4.2