from pgwebsocket import PgWebsocket app = PgWebsocket( "postgresql://" ) @app.on_connect async def on_connect(ctx): """""" ctx.subscribed = [] await ctx.execute("LISTEN all;") @app.on_disconnect async def on_disconnect(ctx): """""" await ctx.execute("UNLISTEN all;") if __name__ == '__main__': app.run()
-
Notifications
You must be signed in to change notification settings - Fork 2
Async websocket to PostgreSQL proxy
License
Wirehive/pgwebsocket
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Async websocket to PostgreSQL proxy
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published