Package no.polaric.core
Interface ServerConfig.PubSub
- All Known Implementing Classes:
PubSub
- Enclosing interface:
- ServerConfig
public static interface ServerConfig.PubSub
Interface to publish-subscribe service (based on websocket)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createRoom
(String name, boolean lg, boolean operator, boolean adm, boolean post, Class cl) Create a room with privilegesvoid
createRoom
(String name, Class cl) Create a roomvoid
Post a object to a room (JSON encoded)void
Post a object to a room owned by a user (JSON encoded)void
Post a message to a room (text is prefixed with the room name)
-
Method Details
-
putText
Post a message to a room (text is prefixed with the room name) -
put
Post a object to a room (JSON encoded) -
put
Post a object to a room owned by a user (JSON encoded) -
createRoom
Create a room -
createRoom
Create a room with privileges
-