Skip to content

changing the timeout duration doesn't seem to work #40

@theweiweiway

Description

@theweiweiway

Hi,

I'm trying to change the timeout to 1000 from the default setting of 20000. Here's my code:

socket = IO.io('https://www.honeybeehub.ca/chat', <String, dynamic>{
      'timeout': 1000,
      'reconnectDelay': 3000,
      'query': {
        'token': accessToken,
      },
      'transports': ['websocket'],
      'upgrade': false,
      'reconnection': true
 });

socket.on('connect_error', (data) {
      print('reconnecting');
});

Everything else with my socket is working perfect. It's just that the timeout is not. Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions