-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the example can not run ,the client send msg but the server cont not receiver msg #79
Comments
The sample server should print to console. If you don't see that, you should check your firewall. |
@TVolden 1.How to send messages on the server side and the client accept
|
In the sample code I provide, you can call sendClearCacheRequest() to try a server to client request.
Anyway, if you instantiated a BootNotificationConfirmation and set the required fields (status, currentTime and interval), then the client should receive the response. |
Any news on this issue @lizhichao999? |
the example can not run ,the clint send msg but the server cont not receiver msg
for example:
the server:
public static void main(String[] args) {
JSONServerSample jsonServer = new JSONServerSample();
try {
jsonServer.started();
//jsonServer.sendClearCacheRequest();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
the client:
public static void main(String[] args) throws Exception {
JSONClientSample jsonClient = new JSONClientSample();
The text was updated successfully, but these errors were encountered: