fix: Disable polling transport for RTS (#15773)
Disable polling transport for RTS This is required to support clustering of RTS, and with it, the Appsmith server.
This commit is contained in:
parent
bd555c1bfd
commit
31481ddaae
|
|
@ -36,6 +36,10 @@ import { SOCKET_CONNECTION_EVENTS } from "./socketEvents";
|
|||
function connect(namespace?: string) {
|
||||
const options = {
|
||||
path: RTS_BASE_PATH,
|
||||
// The default transports is ["polling", "websocket"], so polling is tried first. But polling
|
||||
// needs sticky session to be turned on, in a clustered environment, even for it to upgrade to websockets.
|
||||
// Ref: <https://github.com/socketio/socket.io/issues/2140>.
|
||||
transports: ["websocket"],
|
||||
};
|
||||
const socket = !!namespace ? io(namespace, options) : io(options);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user