T
T
Troodi Larson2020-02-20 14:51:34
JSON
Troodi Larson, 2020-02-20 14:51:34

laravel broadcasting not working, why not?

Good afternoon. Lara's private broadcasting refuses to work. On broadcasting, the documentation is disgusting, IMHO.
When connecting, it says: Client can not be authenticated, got HTTP status 403
Okay, put web.php in the route: Broadcast::routes(['middleware' => ['auth:api']]);
Then a 401 authorization error appears. That is, then we must install Laravel Passport in order to transfer the api token?
Nowhere is a word about authorization. Do you need a total token or not? Why doesn't broadcasting work out of the box without additional plugins?
That is, the default is Broadcast::routes(); which doesn't work? What for?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-06-23
@RuSegment

Key-value pairs are elements of objects, not arrays. So address must be an object ( "address": {), or an array containing objects ( "address": [ {).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question