maitrungduc1410/realtime-chatapp-laravelecho-socketio

Error authenticating jbvu_G038FEQO6JsAAAI for presence-chatroom

Closed this issue · 2 comments

In my laravel-echo-server start part

image

You're authenticating using the host http://privatechat.example.com, is that your host? is it running? Probably don't, that's why the error prints out "NOTFOUND" (means, can't find your host)

Make sure to set field authHost in laravel-echo-server.json to match with current context where you're running your app (Eg: in localhost, it'll be localhost:8000)

If you're using virtual host, make sure you setup it correctly (don't recommend this way, as it causes many overheads in local development)

bro, I want to ask something from u , and this is my php artisan serve tab

laravel-echo-server.json

{
	"authHost": "http://localhost:8000",
	"authEndpoint": "/broadcasting/auth",
	"clients": [],
	"database": "redis",
	"databaseConfig": {
		"redis": {},
		"sqlite": {
			"databasePath": "/database/laravel-echo-server.sqlite"
		}
	},
	"devMode": true,
	"host": null,
	"port": "6001",
	"protocol": "http",
	"socketio": {},
	"secureOptions": 67108864,
	"sslCertPath": "",
	"sslKeyPath": "",
	"sslCertChainPath": "",
	"sslPassphrase": "",
	"subscribers": {
		"http": true,
		"redis": true
	},
	"apiOriginAllow": {
		"allowCors": false,
		"allowOrigin": "",
		"allowMethods": "",
		"allowHeaders": ""
	}
}