import asyncio
from roc.request import Request
from roc.socket import Client
async def main():
client = Client(host="127.0.0.1", port=9502)
while True:
req = Request(path="/test/test",
params={"mobile": "123123", "data": "HelloWorld"})
res = await client.request(req)
print(res.result)
await asyncio.sleep(1)
if __name__ == '__main__':
asyncio.run(main())
-
-
Notifications
You must be signed in to change notification settings - Fork 0
hyperf/roc-py
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
多路复用RPC组件 Python 版本
Resources
Security policy
Stars
Watchers
Forks
Packages 0
No packages published