public class Test extends Object implements DesktopStateListener
Constructor and Description |
---|
Test() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
onClose(String error)
Callback when connection is closed
|
void |
onError(String reason)
Callback when client cannot start or connect to the Desktop.
|
void |
onMessage(String message)
Callback when a message is sent to this client
|
void |
onOutgoingMessage(String message)
Callback when a message is sent from this client
|
void |
onReady()
Callback when Desktop is successfully connected and ready to
accept commands.
|
public void onReady()
DesktopStateListener
onReady
in interface DesktopStateListener
public void onClose(String error)
DesktopStateListener
onClose
in interface DesktopStateListener
error
- Error message. null for normal closepublic void onError(String reason)
DesktopStateListener
onError
in interface DesktopStateListener
reason
- Error messagepublic void onMessage(String message)
DesktopStateListener
onMessage
in interface DesktopStateListener
message
- Message textpublic void onOutgoingMessage(String message)
DesktopStateListener
onOutgoingMessage
in interface DesktopStateListener
message
- Message textpublic static void main(String[] args)
Copyright © 2022. All rights reserved.