working on sockjs controller