socket method

  1. @override
GetSocket socket(
  1. String url, {
  2. Duration ping = const Duration(seconds: 5),
})
inherited

Implementation

@override
GetSocket socket(
  String url, {
  Duration ping = const Duration(seconds: 5),
}) {
  _checkIfDisposed(isHttp: false);

  final _socket = GetSocket(_concatUrl(url)!, ping: ping);
  sockets.add(_socket);
  return _socket;
}