code --> https://github.com/idi-ot/ws_bench
I’ve installed tsung with homebrew, so you might need to change this line in tsung.xml
<!DOCTYPE tsung SYSTEM "/usr/local/Cellar/tsung/1.6.0/share/tsung/tsung-1.0.dtd">
to something else if you don’t use homebrew.
Right now I don’t get any connected “users”.
This callback in the handler
def websocket_init(_type, req, _opts) do
Logger.debug("someone connected")
{:ok, req, %{}, @timeout}
end
doesn’t output anything. Not even once.