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 TypeMethodDescriptionvoidcreateRoom(String name, boolean lg, boolean operator, boolean adm, boolean post, Class cl) Create a room with privilegesvoidcreateRoom(String name, Class cl) Create a roomvoidPost a object to a room (JSON encoded)voidPost a object to a room owned by a user (JSON encoded)voidPost 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
-