GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

7 results across 6 corpora for Sec-WebSocket-Protocol header.

Encyclopedia 1

WebSocket

); }; GET /chat HTTP/1.1 Host: server.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Origin: http://example.com Sec-WebSocket-Protocol: chat, superchat Sec-WebSocket-Version: 13 Example response: HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo= Sec-WebSocket-Protocol: chat The following Python cod

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1376734210

Developer library 6

WebSocket API (WebSockets)

client. In responses, it is sent only if the requested protocol version is not supported by the server, and lists the versions that the server supports. - Sec-WebSocket-Protocol - : An HTTP header that in requests indicates the sub-protocols supported by the client in preferred order. In responses, it indicates the sub-protocol selected by the server from the client's preferences. - Sec-WebSocket-Extension

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

Writing a WebSocket server in Java

WebSockets API This example shows you how to create a WebSocket API server using Oracle Java. Although other server-side languages can be used to create a WebSocket server, this example uses Oracle Java to simplify the example code. This server conforms to [RFC 6455](https://datatracker.ietf.org/doc/html/rfc6455), so it only handles connections from Chrome version 16, Firefox 11, IE 10 and higher. ## First steps

Writing a WebSocket server in C#

WebSockets API If you would like to use the WebSocket API, it is useful if you have a server. In this article I will show you how to write one in C#. You can do it in any server-side language, but to keep things simple and more understandable, I chose Microsoft's language. This learning example demonstrates the handshake and basic message framing defined by [RFC 6455](https://datatracker.ietf.org/doc/html/rfc6455).

Writing WebSocket servers

A client has to ask for a specific subprotocol. To do so, it will send something like this _as part of the original handshake_: ```http GET /chat HTTP/1.1 ... Sec-WebSocket-Protocol: soap, wamp ``` or, equivalently: ```http ... Sec-WebSocket-Protocol: soap Sec-WebSocket-Protocol: wamp ``` Now the server must pick one of the protocols that the client suggested and it supports. If there is more than one, send the f

WebSocket: WebSocket() constructor

the specified value. Note however that only one sub-protocol can be selected per connection. The allowed values are those that can be specified in the Sec-WebSocket-Protocol HTTP header. These are values selected from the [IANA WebSocket Subprotocol Name Registry](https://www.iana.org/assignments/websocket/websocket.xml#subprotocol-name), such as `soap`, `wamp`, `ship` and so on, or may be a custom name

HTTP headers

m the client's preferences. - Sec-WebSocket-Key - : Request header containing a key that verifies that the client explicitly intends to open a `WebSocket`. - Sec-WebSocket-Protocol - : In requests, this header indicates the sub-protocols supported by the client in preferred order. In responses, it indicates the sub-protocol selected by the server from the client's preferences. - Sec-WebSocket-Version - : In

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers

JSON results · Services directory