Skip to content

Simple WebSocket server in Python from scratch with curio

Notifications You must be signed in to change notification settings

atodekangae/simplews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

A simple WebSocket server written in Python with curio.

Example

from curio import run
from simplews import ws_server

async def test_server(client, addr, recv, send):
    print('accepted')
    async for data in recv:
        print('received: {}'.format(data))
        await send(data.upper())

run(ws_server, '', 8000, test_server)

About

Simple WebSocket server in Python from scratch with curio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published