diff --git a/main.cpp b/main.cpp index d351f99..8f49b72 100644 --- a/main.cpp +++ b/main.cpp @@ -26,5 +26,11 @@ int main(int argc, char *argv[]) { {"login", "sdi10"}, {"passcode", "809c02f36becb0868da98761fe3209f6"} }).send(socket); + + + + STOMPFrame(STOMPFrame::MESSAGE, { + {}, + }).send(socket); return application.exec(); } diff --git a/stomp.cpp b/stomp.cpp index 2f947fb..f5900d3 100644 --- a/stomp.cpp +++ b/stomp.cpp @@ -4,13 +4,14 @@ Stomp::Stomp() { } -bool Stomp::subscribe(interface::iStompObserver obs) { +bool Stomp::subscribe(interface::iStompObserver* obs) { for(int i = 0; i < MAX_OBSERVER; i++) { - if (observer_[i] == nullptr) { - observer_[i] = obs; - return true; - } + if (observer_[i] == nullptr) { + observer_[i] = obs; + return true; } - return false; + } + return false; +}