In my rails app I'm using ActionCable and I want to close the websocket connection with the client(using electron) with a custom code. In its documentation I found that I can't pass the code to the disconnect method and when I tried looking it up I found nothing.
has anyone tried doing that? can there be other ways to establish that behaviour?