Dart API Referencedart:ioDetachedSocket

DetachedSocket Interface

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.

Methods

Code Socket get socket() #

Socket get socket();

Code List<int> get unparsedData() #

List<int> get unparsedData();