I am using Ratchet in combination with autobahnjs. I know how to close the connection on server side (by calling "close()" on the connection), but how would I be able to close the connection also on client side?
If I only close it on server side, autobahnjs will try to reconnect to the websocket even though I just kicked him out of his connection on server side.. Before kicking him out, I send a last message to the client with a flag "close" => true, afterwards I want to close the autobahnjs connection.
I thought of something like "ab.close() or ab.disconnect()", but close won't stop autobahnjs from trying to reestablish a connection and disconnect is not a known function.