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
Yes, I saw your mentioned Merge Request. In my example I am using 4000+ WebSocket close code what according https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent#Status_codes description should be used for application specific purpose. In my implementation I am not performing status

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

2018-10-05 Thread T.J. Schuck
See also https://github.com/rails/rails/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 explaining why >the

[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: