AWS | Websockets Authorizers Example

The example shows you how to deploy simple websocket authorizers

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u https://github.com/serverless/examples/tree/master/aws-node-websockets-authorizers -n  aws-node-websockets-authorizers

Simple Websockets Authorizers Example

  • Deploy the example service.
  • connect to the outputted wss url using wscat:
wscat -c <wss-url>
  • Connection should fail. If you try again, this time specifying an Auth header:

    wscat -c <wss-url> -H Auth:secret
    
  • Connection succeeds.

  • Feel free to chat with yourself :)

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g