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 newSocket = GetSocket(_concatUrl(url)!, ping: ping);
  sockets.add(newSocket);
  return newSocket;
}