我在react native中使用socket.io,一切都很顺利,除了我在屏幕底部的黄色框中得到这个警告--未识别的WebSocket连接选项(s) agent
, perMessageDeflate
, pfx
, key
, passphrase
, cert
, ca
, ciphers
, rejectUnauthorized
. 你是不是想把这些放在 headers
帮忙
百试不爽
试试这个。它为我工作。
const socket = io(host, { forceNode: true });