这样设置了 http 的,但是 websocket 的没设置上,有做过相关的 v 友吗?
NSURLCredential *creds = [[NSURLCredential alloc] initWithUser:@"user" password:@"pwd" persistence:NSURLCredentialPersistenceForSession];
1
chenzheyu 2021-12-23 15:32:16 +08:00
虽然我不懂 ws ,但是 BasicAuth 在 http 上面就是一个 header Authorization: Basic MTIzMjEzOjEyMzIxMw==
|