Dart API Referencedart:ioDetachedSocket

DetachedSocket abstract class

When detaching a socket from either the HttpServer or the HttpClient due to a HTTP connection upgrade there might be unparsed data already read from the socket. This unparsed data together with the detached socket is returned in an instance of this class.

abstract class DetachedSocket {
  Socket get socket;
  List<int> get unparsedData;
}

Properties

final Socket socket #

Socket get socket;

final List<int> unparsedData #

List<int> get unparsedData;