SocketIOOptions constructor

SocketIOOptions({
  1. required String path,
  2. List<String> transports = const ['websocket'],
  3. int timeout = 900000,
  4. Map<String, dynamic> headers = const {'accept' : 'application/json'},
})

Implementation

SocketIOOptions({
  required this.path,
  this.transports = const ['websocket'],
  this.timeout = 900000, // 15 minutes
  this.headers = const {'accept': 'application/json'},
});