Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular socket.io with token header

var socket = io("http://localhost", {
  extraHeaders: {
    Authorization: "Bearer authorization_token_here"
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #token #header
ADD COMMENT
Topic
Name
4+2 =