close abstract method

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

Close the WebSocket with code and reason.

Implementation

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