Working with sockets description.
The pusher protocol is used for working with sockets.
After authentication, all users must subscribe to two channels:
user.{ID} – used when a push notification needs to be sent to all user sessions
token.{ID} – used when a push notification needs to be sent to a specific session
These channels are private, and depending on the library being used, the private- prefix needs to be added.
The URL for channel authorization is api/v1/broadcasting/auth
curl -k --request POST \ --url 'https://your-domain' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '[]'
$data = array ( ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => '/', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.