public class SuperTenantSubscriptionEndpoint extends SubscriptionEndpoint
Constructor and Description |
---|
SuperTenantSubscriptionEndpoint() |
Modifier and Type | Method and Description |
---|---|
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason reason,
String streamName,
String version)
Web socket onClose - Remove the registered sessions
|
void |
onError(javax.websocket.Session session,
Throwable throwable,
String streamName,
String version)
Web socket onError - Remove the registered sessions
|
void |
onMessage(javax.websocket.Session session,
String message,
String streamName)
Web socket onMessage - When client sens a message
|
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig config,
String streamName,
String version)
Web socket onOpen - When client sends a message
|
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config, String streamName, String version)
session
- - Users registered session.streamName
- - StreamName extracted from the ws url.version
- - Version extracted from the ws url.public void onMessage(javax.websocket.Session session, String message, String streamName)
session
- - Users registered session.message
- - Status code for web-socket close.streamName
- - StreamName extracted from the ws url.public void onClose(javax.websocket.Session session, javax.websocket.CloseReason reason, String streamName, String version)
onClose
in class SubscriptionEndpoint
session
- - Users registered session.reason
- - Status code for web-socket close.streamName
- - StreamName extracted from the ws url.version
- - Version extracted from the ws url.public void onError(javax.websocket.Session session, Throwable throwable, String streamName, String version)
onError
in class SubscriptionEndpoint
session
- - Users registered session.throwable
- - Status code for web-socket close.streamName
- - StreamName extracted from the ws url.version
- - Version extracted from the ws url.Copyright © 2017 WSO2. All rights reserved.