minor refactor of sockjs redis server