Re: [Rails-core] [Feature][ActionCable] Possibility from server side to terminate subscription by specifying WebSocket close code and reason

2018-10-08 Thread Artis Abolts
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

[Rails-core] [Feature][ActionCable] Possibility from server side to terminate subscription by specifying WebSocket close code and reason

2018-10-04 Thread Artis Abolts
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