close method
Closes this socket. Server-initiated shutdown defaults to code 1001.
Implementation
Future<void> close({
int code = 1001,
String reason = 'Server shutting down',
}) => _shutdown(code: code, reason: reason);
Closes this socket. Server-initiated shutdown defaults to code 1001.
Future<void> close({
int code = 1001,
String reason = 'Server shutting down',
}) => _shutdown(code: code, reason: reason);