Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
/ websocket Public archive

Small python library for using websockets.

License

Notifications You must be signed in to change notification settings

yannickl88/websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket

Small python library for using websockets.

Usage

import websocket

# Create socket
# See http://www.websocket.org/echo.html for this connection.
c = websocket.WebSocket('ws://echo.websocket.org/')

# Open connection (and do handshake)
c.connect()

# Send a message
c.send("Rock it with HTML5 WebSocket")

# Receive a message
print(c.receive().message())

# Close the connection
c.close()

About

Small python library for using websockets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages