当我在Mac上使用Socket.IO C ++时,出现错误: enter image description here
我可以通过诸如forceWebsockets(true)之类的swift或通过诸如io.set('transports',['websocket'])之类的js来强制websocket解决问题。 我该怎么办C ++。
这是代码:
std :: string client :: IOURL =“ http :: // XXXXXXXXXXXXX”;
std :: map client :: params = {{“ XXX”,“ XX”},{“ XX”,“ XX”}};
client client :: instance;
client :: client(){ }
client ::〜client(){ }
void client :: initDBSocket(std :: string userId){ client :: params.insert(std :: pair(“ token”,“ {\” termId \“:\”“ + userId +” \“}”)));
[WARNING] Could not validate integrity of download from https://bitbucket.org/company/xxx_repo/raw/artifacts/com/aaa/bbb/3.0/bbb-3.0.jar: Checksum validation failed, expected <!doctype but is 2f947caee42a20633fb9c412ew53591f64b8c4481
}
是错误:
错误:没有活动的会话
[2020-05-20 18:06:46] [连接]成功连接
[2020-05-20 18:06:47] [错误]服务器握手响应错误:
websocketpp.processor:20(无效的HTTP状态。)
这是一个socketIO客户端。
快捷代码:
class DBSocketFactory { private static let IOURL =“ http://xxxxxxxx”
${props.isPrimary && `
background-color: ${props.theme.ACCENT.IDLE};
`}; // here
${props.isSecondary && `
background-color: ${props.theme.COMPLEMENTARY.IDLE};
`}
}