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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BroadcastChannel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BroadcastChannelbuild()get the broadcast channelbooleanequals(Object obj)Channel equals if they both refer to the same userStringgetUrn()Get uniform resource nameinthashCode()StringtoString()
-
-
-
Method Detail
-
getUrn
public String getUrn()
Description copied from interface:WebsocketChannelGet uniform resource name- Specified by:
getUrnin interfaceWebsocketChannel- Returns:
- uniform resource name
-
equals
public boolean equals(Object obj)
Channel equals if they both refer to the same user
-
build
public static BroadcastChannel build()
get the broadcast channel- Returns:
- the broadcast channel
-
-