i am the clientendpoint
first, i want to logon the server (example: wss://demo.proto.com:433) with
username (apiTest) and password (pass)
1.connect to the server
endpointURI = new URI("wss://demo.proto.com:443/");
WebSocketContainer container = ContainerProvider.getWebSocketContainer();
container.connectToServer(this, endpointURI);
2.bind the Logon Message
WebapiDemo.Logon.Builder loginBuilder = WebapiDemo.Logon.newBuilder();
loginBuilder.setUserName("apiTest");
loginBuilder.setPassword("pass");
WebapiDemo.Logon loginMessage = loginBuilder.build();
3.the last thing is sending the Logon Message to the server.
i have no idea about how to send message to remote server ,pls give me
some sample code ,thanks
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.