Lets clients upgrade a connection to the WebSocket protocol (RFC 6455) and relays it between client and backend. Without this plugin, upgrade requests are rejected. The upgrade request passes the flow like any other request, so plugins before webSocket, e.g. for authentication, apply to it.
Without frame interceptors, the bytes of the connection are relayed unchanged. With frame interceptors, every message passes them as one complete frame: fragmented messages are joined, and no WebSocket extension such as permessage-deflate is negotiated. If a frame interceptor fails, both peers are sent a close frame with status 1011 (internal error).
Maximum size of a message in bytes, in either direction, when frame interceptors are configured. Each message is held in memory while it passes them. A peer that sends a larger message is sent a close frame with status 1009 (message too big), and the connection is closed. Without frame interceptors, there is no limit.
1048576
url
false
-
Backend for WebSocket connections, instead of the API's target. Its host and port select the server, its path and query replace those of the upgrade request. Other requests still go to the target.