• Stars
    star
    233
  • Rank 171,295 (Top 4 %)
  • Language
    HTML
  • Created over 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tornado WebSocket example

This is a websocket example written in python.

Installation

  1. git clone https://github.com/hiroakis/tornado-websocket-example.git

  2. cd tornado-websocket-example

  3. pip install -r requirements.txt

  4. python app.py

  5. http://localhost:8888/ (This is my demo page -> http://hiroakis.com:8888/)

  6. Send a REST call:

Docker

You can create demo server using docker.

  • build
docker build -t hiroakis/tornade-websocket-example .
docker run -d -p 8888:8888 hiroakis/tornade-websocket-example

or

  • pull from docker hub
docker pull hiroakis/tornado-websocket-example
docker run -d -p 8888:8888 hiroakis/tornado-websocket-example

REST API examples

Set the "id 1" value to 100 :

  • curl "http://hiroakis.com:8888/api?id=1&value=100"

Set the "id 1" value to 300( The row No 1 will change to yellow ) :

  • curl "http://hiroakis.com:8888/api?id=1&value=300"

Set The "id 1" value to 600( The row No 1 will change to red ):

  • curl "http://hiroakis.com:8888/api?id=1&value=600"

  • value 201 - 500 : change to yellow

  • value 501 - : change to red

License

MIT

More Repositories

1

docker-sensu-server

A Dockerfile for Sensu on CentOS
108
star
2

esa-go

esa client library for API v1 written in golang
Go
13
star
3

go-check-ssl-certificates

The go-check-ssl-certificates checks the ssl certificates
Go
9
star
4

cyberspace.vim

A dark color scheme for vim
Vim Script
8
star
5

en

en. An environment variable management tool for Circle CI
Go
8
star
6

go-sql-sniffer

The go-sql-sniffer extracts the SQL packet from tcpdump packet.
Go
7
star
7

simple-bbs-cassandra

Python
7
star
8

fluent-plugin-sendgrid-event

Ruby
6
star
9

twslacker

notify twitter stream to slack
Ruby
4
star
10

dstat-agent

Go
3
star
11

go-requests

A HTTP library for Go, inspired by requests module written in Python. The usage is similer to Python requests.
Go
3
star
12

dotfiles

my dotfiles
Vim Script
3
star
13

bb

Go
3
star
14

cubism-example

3
star
15

go-bigquery

Go
2
star
16

ec2-instances-excel

Python
2
star
17

mackerel-agent-checks-plugins

Go
2
star
18

vscode-gocyclo

vscode-gocyclo is a VSCode extension that displays the cyclomatic complexities of functions in Go source code
TypeScript
2
star
19

bouncer

Ruby
1
star
20

inventoryfile

Inventoryfile. A parser for ansible inventory file which is an INI like formatted file.
Ruby
1
star
21

host-management-app

This project is created for my angular.js study :)
Python
1
star
22

vim-breakline

An easy line splitter.
Vim Script
1
star
23

sendgrid-reporter

Go
1
star
24

tor-status-proxy

Go
1
star
25

combinatorics

Generate all possible combinations of r elements in a given string slice of size n
Go
1
star
26

sendgrid-bigquery

insert sendgrid event notification to google bigquery
Python
1
star
27

munin-riak

munin plugin for Riak
Python
1
star
28

goflow

A flowchart generator for Go
Go
1
star