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