Class BroadcastChannel

java.lang.Object
ch.colabproject.colab.api.ws.channel.model.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:
  • Constructor Details

    • BroadcastChannel

      public BroadcastChannel()
  • Method Details

    • getUrn

      public String getUrn()
      Description copied from interface: WebsocketChannel
      Get uniform resource name
      Specified by:
      getUrn in interface WebsocketChannel
      Returns:
      uniform resource name
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • build

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