I am trying to make connection from my Quarkus application to centrifugo server.
I have an instance running using docker and configured this way:
{
"api_key": "my_api_key",
"admin_password": "password",
"admin_secret": "secret",
"admin": true
}
I tried to make the connection from my quarkus app. I made an instance of the EventListener and then
Options opts = new Options();
Client client = new Client(
"ws://localhost:8000//connection/websocket",
opts,
listener
);
client.connect();
This way i get 3501 bad request
which is related to insufficient options. I tried to add client.setToken();
but i have no idea how to generate it.
Is there any way to make the connection without the JWT token? and if now how to retrieve it in this case.