close method

void close([
  1. JSNumber? code,
  2. JSString? reason
])

Close websocket.

Implementation

external void close([JSNumber? code, JSString? reason]);