Phoenix 1.4.0 - How to force socket disconnect from javascript client?

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!

I just use disconnect without parameters…

socket.disconnect()

Unless You want to do something special, it should be enough.

tnx @kokolegorille

Because I read a lot of things about unexpected socket/channel behaviour,
I am trying to find out what my options are to not leave anything to chance.