Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Use defined headers #2

Merged
merged 1 commit into from
Jul 5, 2021
Merged

Use defined headers #2

merged 1 commit into from
Jul 5, 2021

Conversation

DeveloperMarius
Copy link

@DeveloperMarius DeveloperMarius commented Jun 30, 2021

Hey,

I'm using socketio-jwt (NodeJS Server Side Package) to check for a Authorization header and validate it using jwt.
For that I need to add a header, but elephant.io never applys defined headers. I don't know why and I hope it is the right place to add them.

$elephant = new ElephantIO\Client(new \ElephantIO\Engine\SocketIO\Version3X('https://domain.de:4101', array(
                'headers' => [
                    'Authorization: Bearer tokenabc'
                ]
            )));

Looking forward to your feedback^^

~ Marius

@tohenk tohenk merged commit 39ed403 into tohenk:master Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants