Skip to content

nightswinger/simple-websocket-chat-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Websocket Chat for Ruby

This repository is an example for creating WebsocketAPI in API Gateway with Ruby.

Quick Start

To set up the project, run there commands.

$ cd aws-ruby-websocket-chat-app
$ npm install -g serverless
$ sls deploy

Then you can test this Websocket API to use wscat in command line.

$ npm install -g wscat
$ wscat -c wss://{YOUR-API-ID}.execute-api.{YOUR-REGION}.amazonaws.com/{STAGE}
connected (press CTRL+C to quit)
> {"action":"sendmessage", "data":"hello world"}
< hello world

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages