Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从烧瓶中的 socketio 获取用户代理信息?我猜想在握手期间将用户相关信息发送到套接字服务器。
如果不可能,我将要求客户手动发送此信息。
好的,我想通了。与我们在常规 Web 应用程序中所做的相同:
userAgent = request.headers.get('User-Agent')