s/pull/29390 about using proper
> close codes for WebSockets.
>
> On Thu, Oct 4, 2018 at 1:45 PM, Artis Abolts > wrote:
>
>> WebSocket.close() method accept two optional parameters:
>>
>>
>>1. code - A numeric value indicating the status code explain
WebSocket.close() method accept two optional parameters:
1. code - A numeric value indicating the status code explaining why the
connection is being closed.
2. reason - A human-readable string explaining why the connection is
closing.
More info: https://developer.mozilla.org/en