import asyncio
import websockets

async def main():
    async with websockets.connect(
        "wss://echo.websocket.org",
        extra_headers=[("Origin", "https://www.winway.tw")]
    ) as ws:
        await ws.send("hello")
        print(await ws.recv())

asyncio.run(main())