Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SopTHN's avatar

Is Anyone here using postman websockets to connect to laravel?

I'm new to websocket and I want to connect to laravel using postman for websocket testing, my laravel version is v11 and using laravel Reverb, the postman successfully connected to laravel and performed pusher:subscribe to a specific channel, but when I try to send a message to a specific event, the laravel at itself receives the message but it can't respond it, here is the channel route code: Broadcast::channel('test_message', function () { return true; }); For event file: class TestEvent implements ShouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels;

public $message;

public function __construct($message)
{
    $this->message = $message;
}

public function broadcastOn()
{
    return new Channel('test_message');
}

public function broadcastAs()
{
    return 'testEvent';
}

} I searched across the internet about this issue and I can't find the solution, any solution here?

0 likes
3 replies
Snapey's avatar

the postman successfully connected to laravel and performed pusher:subscribe to a specific channel

You can't send to Laravel from its own connection?

Not sure Postman is of any use to you here?

Qubical's avatar

Also interested in this. Looking to open a websocket via reverb to register a device (VR Headset) and enable bidirectional communication. Can connect from Postman but sending / triggering an event is eluding me.

I'd like to use Postman to test device JSON messages without having to connect a headset every time.

ctechdev's avatar

I'm trying to connect from my app in Flutter now and I can confirm that the connection is successful from postman with ws://localhost:8080/app/{{REVERB_APP_KEY}}

Please or to participate in this conversation.