A. Create the WebSocket API

Create a WebSocket API on APIGateway

  1. From the AWS Management Console, navigate to the Amazon API Gateway console here.
  2. Depending on the state of your account you can find a Create API or Get Started Button. Click on the one that you see. This will take you to the create API page.
    1. Select the WebSocket radio button under Choose the Protocol.
    2. For API name enter, <YourEnvironmentName>WebSocket.
    3. For Route Selection Expression enter $request.body.action.
      • Note: If you want to learn more about routes and what they do click on the Learn More button next to the input box
    4. For Description, enter WebSocket for Alien Attack.
    5. Click Create API.

You have now created a WebSocket API for your Alien Attack Game!