How can I make clear to the server that I am not under a bridge, but I want to disconnect?
So from my javascript client I want to forcefully close the socket connection indefinitely.
This document: https://hexdocs.pm/phoenix/js/#socket
describes this method: disconnect(callback: Function, code: integer, reason: string)
It is not clear to me how to use either code or reason,
should there be a list of status codes available somewhere?
Should I use any specific code to signal that I want to disconnect indefinitely until I decide to connect again?
Thanks!