Web-Socket is a communication technology to which next generation going to use or We can say that a next generation technology for web application for getting response from server and to send data to server like GET and POST Method.
Like in JQuery: -
Like in JQuery: -
$.post() Or $.get() or $.ajax() etc
How this function works for us in programming ?
This function used for sending and receiving data to server and from server.
This is one to one communication between client to server and server to client structure.
Syntax: var Socket = new WebSocket(url, [protocal] );
We can easily understand with the help of Example: -
You Might Also Read: -
0 comments:
Post a Comment