我在react native中使用socket.io,一切正常,除了我在底部屏幕的黄色方框中收到警告-无法识别的WebSocket连接选项(S) agent,perMessageDeflate,pfx,key,passphrase,cert,ca,ciphers,rejectUnauthorized。你的意思是要把这些放在headers下面吗?请帮帮忙
已尝试排除所有故障
发布于 2020-05-16 11:47:29
尝尝这个。这对我很管用。
const socket = io(host, { forceNode: true });
https://stackoverflow.com/questions/57028443
复制相似问题