wilk / ng-websocket

AngularJS HTML5 WebSocket powerful library
MIT License
267 stars 78 forks source link

Connect with headers #43

Open ghost opened 7 years ago

ghost commented 7 years ago

How do I sent headers with my connection string?

I need to send something like:

Header: Authorization Value: Bearer SOME_JWT_TOKEN

                var ws = $websocket('wss://' + websocket, {
                    reconnectIfNotNormalClose: true
                });