Skip to content

Commit 2c2e3c8

Browse files
RoRoJnerda-codes
andauthored
fix(edge): add websocket support for lb origins (#5912)
* fix(edge): add websocket support for lbs * fix(edge): typo * Apply suggestions from code review Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --------- Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com>
1 parent 126500d commit 2c2e3c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pages/edge-services/how-to/create-pipeline-lb.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ If you see the message `Edge Services was unable to contact the host via the Loa
7171
- **Origin host**: Ensure that you entered the correct origin host, with no typos, for a host that exists behind the selected Load Balancer.
7272
- **Load Balancer ACLs**: Ensure that there are no [ACLs](/load-balancer/how-to/create-manage-acls/) configured on your Load Balancer which are blocking traffic from Edge Services.
7373

74+
## WebSocket support
75+
76+
If you want Edge Services to be able to forward WebSocket requests to the Load Balancer, you must enable a specific parameter via the Edge Services API.
77+
78+
Make a call to the [Update backend stage](https://www.scaleway.com/en/developers/api/edge-services/#path-backend-stages-update-backend-stage) endpoint, to enable the `has_websocket` parameter in the `scaleway_lb` object.
79+
80+
If you do not enable `has_websocket`, WebSocket requests will not be forwarded to the Load Balancer. This means that any client attempting to establish a WebSocket connection to the Load Balancer origin via Edge Services will experience a failed connection or a 400/500 HTTP error.
81+
82+
This parameter cannot yet be set via the Scaleway console.
83+
7484
## Help for Kubernetes Load Balancers
7585

7686
If you are setting up an Edge Services pipeline for a [Kubernetes Kapsule](/kubernetes) Load Balancer, follow these steps to determine which Load Balancer and frontend to configure for your pipeline:

0 commit comments

Comments
 (0)