socketId}:{$channelName}"; if ($encodedUser) { $signature .= ":{$encodedUser}"; } $hash = hash_hmac('sha256', $signature, $connection->app->secret); $this->payload['data']['auth'] = "{$connection->app->key}:{$hash}"; } }