Skip to content

Socket IO Endless Connection and Disconnection when using AWS Load Balancer with 2 Nodes(Task) #1517

Description

@jessebithealth

I've been using Socket.io version 16.1.1, and normally, it works fine with AWS Load Balancer with only 1 node.
My team then tried to up the spec to 2 nodes, and now the iOS side is experiencing an endless connect-disconnect loop, as if the connection won't stick. (note: URL is wss)
Below is the socket config:
socketManager = SocketManager(socketURL: url, config: [ .log(true), .connectParams(params), .path("/caregiver-ws/"), .reconnects(true), .forceNew(true) ])
*i tried with forceWebsocket(true), but the weird part is, with forceWebsocket(true), the socket would not even connect, and is in a loop of reconnection
**the android client works fine, so I'm stuck
Any respond or help would be appreciated, thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions