Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neverendingqs/serverless-websocket-example

WebSocket example using the Serverless Framework
https://github.com/neverendingqs/serverless-websocket-example

code-examples serverless-examples serverless-framework websocket websocket-application

Last synced: 6 days ago
JSON representation

WebSocket example using the Serverless Framework

Awesome Lists containing this project

README

        

# Serverless WebSocket Example

A simple WebSocket application. See the full walkthrough at [API Gateway WebSocket APIs with
the Serverless
Framework](https://blog.neverendingqs.com/2019/07/01/serverless-websocket-example.html).

```sh
# Deploy to AWS first
npm run sls -- deploy

# Start the client on port 8080
npm start

# Broadcast a message to all listening clients
npm run broadcast
```
_Got a question or want to see more examples like this? Be sure to check out my [AMA repo](https://github.com/neverendingqs/ask-me-anything)!_