You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get started with Relay Hybrid Connections HTTP requests in .NET
@@ -52,7 +52,6 @@ In Visual Studio, write a C# console application to send messages to the relay.
52
52
1. Run the client application. You see `hello!` in the client window. The client sent an HTTP request to the server, and server responded with a `hello!`.
53
53
3. Now, to close the console windows, press **ENTER** in both the console windows.
54
54
55
-
Congratulations, you've created a complete Hybrid Connections application!
Copy file name to clipboardExpand all lines: articles/azure-relay/relay-hybrid-connections-node-ws-api-overview.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
title: Overview of the Azure Relay Node APIs | Microsoft Docs
3
3
description: This article provides an overview of the Node.js API for the Azure Relay service. It also shows how to use the hyco-ws Node package.
4
4
ms.topic: article
5
-
ms.date: 08/10/2023
5
+
ms.date: 12/11/2024
6
6
ms.custom: devx-track-js
7
7
---
8
8
9
9
# Relay Hybrid Connections Node.js API overview
10
10
11
11
## Overview
12
12
13
-
The [`hyco-ws`](https://www.npmjs.com/package/hyco-ws) Node package for Azure Relay Hybrid Connections is built on and extends the [`ws`](https://www.npmjs.com/package/ws)NPM package. This package re-exports all exports of that base package and adds new exports that enable integration with the Azure Relay service Hybrid Connections feature.
13
+
The [`hyco-ws`](https://www.npmjs.com/package/hyco-ws) Node package for Azure Relay Hybrid Connections is built on and extends the [`ws`](https://www.npmjs.com/package/ws)Node Package Manager (npm) package. This package re-exports all exports of that base package and adds new exports that enable integration with the Azure Relay service Hybrid Connections feature.
14
14
15
15
Existing applications that `require('ws')` can use this package with `require('hyco-ws')` instead, which also enables hybrid scenarios in which an application can listen for WebSocket connections locally from "inside the firewall" and via Hybrid Connections, all at the same time.
16
16
@@ -123,17 +123,17 @@ Constructor arguments:
123
123
124
124
#### Events
125
125
126
-
`RelayedServer` instances emit three events that enable you to handle incoming requests, establish connections, and detect error conditions. You must subscribe to the `connect` event to handle messages.
126
+
`RelayedServer` instances emit three events that enable you to handle incoming requests, establish connections, and detect the error conditions. You must subscribe to the `connect` event to handle messages.
127
127
128
-
##### headers
128
+
##### Headers
129
129
130
130
```JavaScript
131
131
function(headers)
132
132
```
133
133
134
134
The `headers` event is raised just before an incoming connection is accepted, enabling modification of the headers to send to the client.
135
135
136
-
##### connection
136
+
##### Connection
137
137
138
138
```JavaScript
139
139
function(socket)
@@ -142,7 +142,7 @@ function(socket)
142
142
Emitted when a new WebSocket connection is accepted. The object is of type `ws.WebSocket`, same as with the base package.
Copy file name to clipboardExpand all lines: articles/azure-relay/relay-hybrid-connections-protocol.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Azure Relay Hybrid Connections protocol guide | Microsoft Docs
3
3
description: This article describes the client-side interactions with the Hybrid Connections relay for connecting clients in listener and sender roles.
4
4
ms.topic: article
5
-
ms.date: 08/10/2023
5
+
ms.date: 12/11/2024
6
6
---
7
7
8
8
# Azure Relay Hybrid Connections protocol
@@ -43,7 +43,7 @@ to be accepted for establishing a bi-directional communication path. "Connect,"
43
43
44
44
Any relayed communication model has either party making outbound connections
45
45
towards a service endpoint. This makes the "listener" also a "client" in
46
-
colloquial use, and may also cause other terminology overloads. The precise
46
+
colloquial use, and might also cause other terminology overloads. The precise
47
47
terminology therefore used for Hybrid Connections is as follows:
48
48
49
49
The programs on both sides of a connection are called "clients," since they're
@@ -115,8 +115,8 @@ The listener can respond to HTTP requests using an equivalent response gesture.
115
115
The request/response flow uses the control channel by default, but can be
116
116
"upgraded" to a distinct rendezvous WebSocket whenever required. Distinct
117
117
WebSocket connections improve throughput for each client conversation, but they
118
-
burden the listener with more connections that need to be handled, which may
119
-
not be desire able for lightweight clients.
118
+
burden the listener with more connections that need to be handled, which might
119
+
not be desirable for lightweight clients.
120
120
121
121
On the control channel, request and response bodies are limited to at most 64 kB
122
122
in size. HTTP header metadata is limited to a total of 32 kB. If either the
@@ -125,7 +125,7 @@ to a rendezvous WebSocket using a gesture equivalent to handling the
125
125
[Accept](#accept-message).
126
126
127
127
For requests, the service decides whether to route requests over the control
128
-
channel. This includes, but may not be limited to cases where a request exceeds
128
+
channel. This includes, but might not be limited to cases where a request exceeds
129
129
64 kB (headers plus body) outright, or if the request is sent with ["chunked"
130
130
transfer-encoding](https://tools.ietf.org/html/rfc7230#section-4.1) and the
131
131
service has reason to expect for the request to exceed 64 kB or reading the
@@ -155,7 +155,7 @@ in progress.
155
155
#### Renew operation
156
156
157
157
The security token that must be used to register the listener and maintain the
158
-
control channel may expire while the listener is active. The token expiry doesn't affect ongoing connections, but it does cause the control channel to be
158
+
control channel might expire while the listener is active. The token expiry doesn't affect ongoing connections, but it does cause the control channel to be
159
159
dropped by the service at or soon after the moment of expiry. The "renew"
160
160
operation is a JSON message that the listener can send to replace the token
161
161
associated with the control channel, so that the control channel can be
Copy file name to clipboardExpand all lines: articles/azure-relay/service-bus-relay-tutorial.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
---
2
-
title: Expose an on-premises WCF REST service to clients using Azure Relay
2
+
title: Expose on-premises WCF REST service to clients
3
3
description: This tutorial describes how to expose an on-premises WCF REST service to an external client by using Azure WCF Relay.
4
4
ms.topic: tutorial
5
-
ms.date: 08/11/2023
5
+
ms.date: 12/11/2024
6
+
# Customer intent: I want to know how to expose an on-premises WCF REST service to external clients using WCF Relay.
6
7
---
7
8
8
-
# Tutorial: Expose an on-premises WCF REST service to external client by using Azure WCF Relay
9
+
# Tutorial: Expose an on-premises Windows Communication Foundation (WCF) REST service to external client by using Azure WCF Relay
9
10
10
11
This tutorial describes how to build a WCF Relay client application and a service using Azure Relay. Like their original WCF counterparts, a service is a construct that exposes one or more endpoints. Each **endpoint** exposes one or more service operations. The endpoint of a service specifies an **address** where the service can be found, a **binding** that contains the information that a client must communicate with the service, and a **contract** that defines the functionality provided by the service to its clients. The main difference between WCF and WCF Relay is that the endpoint is exposed in the cloud instead of locally on your computer.
1. You can continue sending text messages from the client to the service in this manner. When you're finished, select Enter in the client and service console windows to end both applications.
0 commit comments