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

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