Interface DataChannelCallback.TextMessage

All Known Subinterfaces:
DataChannelCallback.Message
Enclosing interface:
DataChannelCallback
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DataChannelCallback.TextMessage
Called when the channel receives a message.

While set, messages can't be received with DataChannel.receiveMessage().

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onText(DataChannel channel, String text)