Generalize ws socket url
Fix on previous commit
Add footer