working on adding sockjs logic