public class ChatResource
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatResource.OnDisconnect |
| Constructor and Description |
|---|
ChatResource() |
| Modifier and Type | Method and Description |
|---|---|
Response |
broadcast(Message message)
Broadcast the received message object to all suspended response.
|
java.lang.String |
suspend()
Suspend the response without writing anything back to the client.
|
@Suspend(contentType="application/json",
listeners=ChatResource.OnDisconnect.class)
public java.lang.String suspend()
Copyright © 2019. All Rights Reserved.