What is ws: //?

I was looking through stackoverflow pages for curiosity and noticed that an interesting URL: ws://sockets-se.or.stackexchange.com/

enter image description here

I would like to know more about the ws protocol, but I don’t even know how to start the search, because the search for ws or ws protocol does not show me the results that I expected ...

What is this protocol? Can someone point me in a direction?

+6
source share
3 answers

ws: This is a new URL scheme for WebSocket connections. There is also wss: for securely connecting to WebSocket in the same way https: used for secure HTTP connections.

A-priory

The WebSocket specification defines an API that establishes socket connections between a web browser and a server.

In simple words

There is a permanent connection between the client and server, and both parties can start sending data at any time. These are full duplex communication channels over a single TCP connection.

Look here for the API and here for the basics of web jacks and here for a simple demo.

+7
source

ws: // - URI scheme for WebSockets . They provide full duplex communication over a single TCP connection. You often see that they are used for asynchronous streaming of data to a browser ... for example, a chat application or a browser game.

Therefore, since it is used for streaming data, clicking on the “Response” tab in Chrome’s developer tools will not show you the connection data as you expected. For example, Chrome will show you “frames” sent over the connection with their given focus, etc.

+9
source

This is for websocket protocol

http://en.wikipedia.org/wiki/WebSocket

http://tools.ietf.org/html/rfc6455

Other documents that you can find if you use a search device and do a Websockets search

+3
source

All Articles