Closes the WebSocket connection. Optionally set code and reason to send close information to the remote peer.
code
reason
@override Future<Null> close([int? code, String? reason]);