Basic Websocket Chat Example Using the Cowboy Server w/o Phoenix

Hi @kasvith were you able to find a solution to your issue? Cowboy does implement a terminate/3 callback. Check out, Nine Nines: cowboy_websocket(3).

When you implement the callback, you will have access to self() which will be the process that belongs to the client that disconnected.

Sorry for the late reply and thanks again for checking out the article.