kopia lustrzana https://github.com/cirospaciari/socketify.py
6 wiersze
333 B
Python
6 wiersze
333 B
Python
![]() |
from socketify import App, AppOptions
|
||
|
|
||
|
app = App(AppOptions(key_file_name="./misc/key.pem", cert_file_name="./misc/cert.pem", passphrase="1234"))
|
||
|
app.get("/", lambda res, req: res.end("Hello World socketify from Python!"))
|
||
|
app.listen(3000, lambda config: print("Listening on port https://localhost:%d now\n" % config.port))
|
||
|
app.run()
|