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 BroadcastChannel
build()
get the broadcast channelboolean
equals(Object obj)
Channel equals if they both refer to the same userString
getUrn()
Get uniform resource nameint
hashCode()
String
toString()
-
-
-
Method Detail
-
getUrn
public String getUrn()
Description copied from interface:WebsocketChannel
Get uniform resource name- Specified by:
getUrn
in 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
-
-