public class WSHandlerJEE extends Object implements WSHandlerInterface, javax.websocket.MessageHandler
WSHandlerInterface.WSHandlerResponseInterface
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(com.yoctopuce.YoctoAPI.YHTTPHub hub,
boolean first_notification_connection,
int mstimeout,
int notifAbsPos) |
String |
getThreadLabel() |
boolean |
isCallback() |
boolean |
isOpen() |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onMessage(ByteBuffer raw_data,
javax.websocket.Session session) |
void |
onOpen(javax.websocket.Session session) |
void |
sendBinary(ByteBuffer partialByte,
boolean isLast) |
public void connect(com.yoctopuce.YoctoAPI.YHTTPHub hub, boolean first_notification_connection, int mstimeout, int notifAbsPos) throws YAPI_Exception
connect
in interface WSHandlerInterface
YAPI_Exception
public void close()
close
in interface WSHandlerInterface
public boolean isOpen()
isOpen
in interface WSHandlerInterface
public void onOpen(javax.websocket.Session session)
public void onMessage(ByteBuffer raw_data, javax.websocket.Session session) throws YAPI_Exception
YAPI_Exception
public void sendBinary(ByteBuffer partialByte, boolean isLast) throws YAPI_Exception
sendBinary
in interface WSHandlerInterface
YAPI_Exception
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
public String getThreadLabel()
getThreadLabel
in interface WSHandlerInterface
public boolean isCallback()
isCallback
in interface WSHandlerInterface
Copyright © 2023. All rights reserved.