Closed opensourcegps closed 5 years ago
How to disconnect from the server? Some hints about the implementation would be great.
Does not work:
static Future<Socket> disconnect() async { //does not work // _socket.close(); //_socket.sink.close(); // return _socket.close(); }
Got it working with this:
close_socket() async { print('Disconnecting chat socket'); _socket.close(); }
How to disconnect from the server? Some hints about the implementation would be great.
Does not work: