How to create websocket in any function without the route in starlettle

前端 未结 0 1651
我在风中等你
我在风中等你 2020-12-22 10:07
async def test():
 websocket= WebSocket(scope=scope,recive=None, send=None) 
 # I get error over here no matter what I try


async def websocket_endpoint(websocket):         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题