public class ClientEndpoint<MessageType> extends Endpoint<MessageType>
| Constructor and Description |
|---|
ClientEndpoint(EndpointStreamSource<MessageType> endpointStreamSource,
WebSocket<MessageType> webSocket,
Consumer<CloseReason> closeAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearUserProperties() |
String |
getUserProperty(String propertyId) |
<PropertyType> |
getUserProperty(String propertyId,
Class<PropertyType> propertyType) |
void |
send(MessageType message) |
void |
setUserProperty(String propertyId,
Object value) |
close, close, closedWebSockets, connectedWebSockets, errors, messagespublic ClientEndpoint(EndpointStreamSource<MessageType> endpointStreamSource, WebSocket<MessageType> webSocket, Consumer<CloseReason> closeAction)
public void send(MessageType message)
public <PropertyType> PropertyType getUserProperty(String propertyId, Class<PropertyType> propertyType)
public void clearUserProperties()
Copyright © 2018. All rights reserved.