Class BroadcastChannel

  • All Implemented Interfaces:
    WebsocketChannel, ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator, Serializable

    public class BroadcastChannel
    extends Object
    implements WebsocketChannel
    The channel to be used to transmit data to all online users.

    Usage:

    Subscription : as soon as possible on client side + on current user reload
    Unsubscription : none

    Author:
    maxence
    See Also:
    Serialized Form
    • Constructor Detail

      • BroadcastChannel

        public BroadcastChannel()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Channel equals if they both refer to the same user
        Overrides:
        equals in class Object
        Parameters:
        obj - other channel
        Returns:
        true if both refer to the same user
      • build

        public static BroadcastChannel build()
        get the broadcast channel
        Returns:
        the broadcast channel