PatrickJS / angular-websocket

:arrow_upper_left: The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
https://angularclass.github.io/angular-websocket
MIT License
1.22k stars 195 forks source link

Accessing the onError headers #54

Open rbalicki2 opened 8 years ago

rbalicki2 commented 8 years ago

Hello,

Thank you for developing this! It's very easy to use and intuitive.

I'm using this library along with https://github.com/theturtle32/WebSocket-Node/blob/d5398c862b3aa460f71f1c77ddd6138d4e722eaf/docs/WebSocketRequest.md. Under the 'reject' section, you'll see that if a connection is rejected, the rejection message is passed along as a 'X-Websocket-Reject-Reason' header. Does angular-websocket provide any ways to access this header?

I'm happy to modify angular-websocket (this is for a demo) if there's an obvious place to insert the code, if that enables me to access the header.

Thank you! Robert