Changed internals to work with RealmBot's socket server rather than HTTP data.