Skip to content

Cant make it work with wss #1

@eduardo-g-silva

Description

@eduardo-g-silva

Hi, I am following the sample to read messages from stomp using wss because the server I need to get the messages dosn't support tcp.

I manage to connect but I always get null in the body.
Looks like the subscription of the queue is not working or something else that i can't figure out.

        $stompFrame = new Frame();
        $connectFrame = $stompFrame->setLogin($this->ss['login'], $this->ss['password'])
            ->setHeartBeat(0, 10000)->getConnect();
        $subscribeFrame = $stompFrame->getSubscribe($this->ss['queue']);
        $client = new Client($this->ss['host']);
        $client->text($connectFrame);
        $client->text($subscribeFrame);

You sure the way to inject the suscribe queue is using $client=text('name of queue')

Please any advice more than welcome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions