close abstract method

Future close([
  1. int? code,
  2. String? reason
])

Close websocket connect.

Implementation

Future close([int? code, String? reason]);