Hello @mimamch . I just added feature webhook. At this moment i added for session section.
Reason
We want to any callback or message from server-gateway to tell client-server which the session was connected.
Usage
Add variable to .env file with WEBHOOK_ENABLED=true
Now the url to connect new session is:
GET /start-session?session=NEW_SESSION_NAME&scan=true&webhookUrl=http://client-server.test/callback
We assume you have client-server url http://client-server.test/callback
At client url you should grab $_POST['session'] and $_POST['event']
Extra:
If you want have webhook when server on ready start, you should Add variable to .env file with WEBHOOK_URL=http://client-server.test/callback
Hello @mimamch . I just added feature webhook. At this moment i added for session section.
Reason
We want to any callback or message from server-gateway to tell client-server which the session was connected.
Usage
.env
file withWEBHOOK_ENABLED=true
/start-session?session=NEW_SESSION_NAME&scan=true&webhookUrl=http://client-server.test/callback
We assume you have client-server urlhttp://client-server.test/callback
$_POST['session']
and$_POST['event']
Extra:
.env
file withWEBHOOK_URL=http://client-server.test/callback