change accordingly to my angular-socket-io fork