Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I don't know whether it is possible or not.
Can i get a full duplex connection between two clients with server as intermediary?

For Example:
Client 1 connect its socket to Client 2's Socket through internet for transmission of data in a single connection.

I want client application to be java.
Posted
Updated 17-Feb-15 3:03am
v2

1 solution

You gave the answer yourself, the WebSocket is the API that you would be using to allow the server to communicate to the client without having the client to send a new request to the server.

It would be a full-duplex communication mode because server and client both can communicate without having other party to ask for data from either side and can send the data to each other as they wish to. You can read more on this from Mozilla Developer Network[^] to understand the actual concept of this.
 
Share this answer
 
Comments
cybersa 17-Feb-15 9:05am    
Can Websocket work with Java Client application?
Afzaal Ahmad Zeeshan 17-Feb-15 9:07am    
It would work with JavaScript, this API is for client-side. If you're developing the application using Java (as a server-side language) then you can learn for Java's WebSockets as seperately. JavaScript and Java are different.
cybersa 17-Feb-15 10:39am    
Ok.If i'm creating a Websocket server in Java SE means,How can i deploy it to server?
Afzaal Ahmad Zeeshan 17-Feb-15 10:41am    
WebSocket in JavaScript cannot be. However, if you're using Java SE, then you can read these manuals to learn more on this: http://docs.oracle.com/javaee/7/api/javax/websocket/package-summary.html
cybersa 17-Feb-15 10:49am    
Ok.Consider now i have a WebSocket Server in Java.

How can deploy it to server?
Do i need VPS?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900