Skip to content

FastAPIでWebSocketsを動作させるためのサンプルプログラム

Notifications You must be signed in to change notification settings

sattosan/sample-fastapi-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

FastAPIでWebSocketsを動作させるためのサンプルプログラム

Demo

demo

WebSocketsを使った簡単なチャットアプリのデモです

Usage

複数ウィンドウを開き、それぞれ以下のリンクにアクセスする http://localhost:8080

メッセージを送信すると、開いたウィンドウ全てににメッセージが表示される

Install

# コードをクローンする
$ git clone https://github.com/sattosan/sample-fastapi-websockets.git

# クローンしたディレクトリへ移動
$ cd ./sample-fastapi-websockets

# コンテナの起動
$ docker-compose up -d --build

About

FastAPIでWebSocketsを動作させるためのサンプルプログラム

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published