Skip to content

Commit

Permalink
Fix WebSockets sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Jan 30, 2024
1 parent 5b05061 commit 8e83dad
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/binarytype/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.WebSocket.binaryType
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.binaryType`** property controls the type of
binary data being received over the WebSocket connection.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/bufferedamount/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.WebSocket.bufferedAmount
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.bufferedAmount`** read-only property returns
the number of bytes of data that have been queued using calls to [`send()`](/en-US/docs/Web/API/WebSocket/send) but
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/close/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.WebSocket.close
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.close()`** method closes the
{{domxref("WebSocket")}} connection or connection attempt, if any. If the connection is
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/close_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.WebSocket.close_event
---

{{APIRef}}
{{APIRef("WebSockets API")}}

The `close` event is fired when a connection with a `WebSocket` is closed.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/error_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.WebSocket.error_event
---

{{APIRef}}
{{APIRef("WebSockets API")}}

The `error` event is fired when a connection with a `WebSocket` has been closed due to an error (some data couldn't be sent for example).

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-interface
browser-compat: api.WebSocket
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The `WebSocket` object provides the API for creating and managing a [WebSocket](/en-US/docs/Web/API/WebSockets_API) connection to a server, as well as for sending and receiving data on the connection.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/message_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.WebSocket.message_event
---

{{APIRef}}
{{APIRef("WebSockets API")}}

The `message` event is fired when data is received through a `WebSocket`.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/open_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-event
browser-compat: api.WebSocket.open_event
---

{{APIRef}}
{{APIRef("WebSockets API")}}

The `open` event is fired when a connection with a `WebSocket` is opened.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/protocol/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.WebSocket.protocol
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.protocol`** read-only property returns the
name of the sub-protocol the server selected; this will be one of the strings specified
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/readystate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.WebSocket.readyState
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.readyState`** read-only property returns the
current state of the {{domxref("WebSocket")}} connection.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/send/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-method
browser-compat: api.WebSocket.send
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.send()`** method enqueues the specified data
to be transmitted to the server over the WebSocket connection, increasing the value of
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/url/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-instance-property
browser-compat: api.WebSocket.url
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket.url`** read-only property returns the absolute
URL of the {{domxref("WebSocket")}} as resolved by the constructor.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websocket/websocket/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: web-api-constructor
browser-compat: api.WebSocket.WebSocket
---

{{APIRef("Web Sockets API")}}
{{APIRef("WebSockets API")}}

The **`WebSocket()`** constructor returns a new
{{domxref("WebSocket")}} object.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/websockets_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ page-type: web-api-overview
browser-compat: api.WebSocket
---

{{DefaultAPISidebar("Websockets API")}}
{{DefaultAPISidebar("WebSockets API")}}

The **WebSocket API** is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: Web/API/WebSockets_API/Writing_a_WebSocket_server_in_Java
page-type: guide
---

{{DefaultAPISidebar("Websockets API")}}
{{DefaultAPISidebar("WebSockets API")}}

This example shows you how to create a WebSocket API server using Oracle Java.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: Web/API/WebSockets_API/Writing_a_WebSocket_server_in_JavaScript_Deno
page-type: guide
---

{{DefaultAPISidebar("Websockets API")}}
{{DefaultAPISidebar("WebSockets API")}}

This example shows you how to create a WebSocket API server using Deno, with an accompanying web page.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: Web/API/WebSockets_API/Writing_WebSocket_client_applications
page-type: guide
---

{{APIRef("Websockets API")}}
{{DefaultAPISidebar("WebSockets API")}}

WebSocket client applications use the [WebSocket API](/en-US/docs/Web/API/WebSockets_API) to communicate with [WebSocket servers](/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers) using the WebSocket protocol.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: Web/API/WebSockets_API/Writing_WebSocket_server
page-type: guide
---

{{DefaultAPISidebar("Websockets API")}}
{{DefaultAPISidebar("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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ slug: Web/API/WebSockets_API/Writing_WebSocket_servers
page-type: guide
---

{{APIRef("Websockets API")}}
{{DefaultAPISidebar("WebSockets API")}}

A WebSocket server is nothing more than an application listening on any port of a TCP server that follows a specific protocol. The task of creating a custom server tends to scare people; however, it can be straightforward to implement a simple WebSocket server on your platform of choice.

Expand Down
4 changes: 2 additions & 2 deletions files/jsondata/GroupData.json
Original file line number Diff line number Diff line change
Expand Up @@ -2160,8 +2160,8 @@
"properties": [],
"events": []
},
"Websockets API": {
"overview": ["Websockets API"],
"WebSockets API": {
"overview": ["WebSockets API"],
"guides": [
"/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications",
"/docs/Web/API/WebSockets_API/Writing_WebSocket_servers",
Expand Down

0 comments on commit 8e83dad

Please sign in to comment.