detachSocket method

  1. @override
Future<Socket> detachSocket()
override

Detach the underlying socket from the HTTP client. When the socket is detached the HTTP client will no longer perform any operations on it.

This is normally used when a HTTP upgrade is negotiated and the communication should continue with a different protocol.

Implementation

@override
_i4.Future<_i2.Socket> detachSocket() => (super.noSuchMethod(
      Invocation.method(
        #detachSocket,
        [],
      ),
      returnValue: _i4.Future<_i2.Socket>.value(_FakeSocket_6(
        this,
        Invocation.method(
          #detachSocket,
          [],
        ),
      )),
    ) as _i4.Future<_i2.Socket>);