Skip to content

Demonstrate hypercorn server websocket connection close code becomes 1006, when server is receiving and client sent close with 1000.

Notifications You must be signed in to change notification settings

wenleix/hypercorn-ws2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Start Hypercorn Server

pip install -r requirements.txt
hypercorn app:app -b 127.0.0.1:8765

Run Client that Close after Sending Text Message

python client.py

Results

Server side log shows the connection was succesfully established and was able to receiving "Hello World!" string. However, the connection close code was considered as 1006 (abonormal close without close frame), albeit client side indeed send the close frame with close code 1000.

Received: Hello World!
Client disconnected with code 1006

About

Demonstrate hypercorn server websocket connection close code becomes 1006, when server is receiving and client sent close with 1000.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages