Rocket Chat Server - CAS

I am trying to working around this problem for days but could’n find any solution.
I am using CAS authentication for rocket chat server and another web application (A) and I am developing SLO (single logout) function for both rocket chat server and A. But when I click logout on A I want to logout on rocket chat too. Is their any idea how to do that?
Please help