Skip to content

Commit

Permalink
remove non xhr protocols from sockjs client
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-muir committed Oct 17, 2023
1 parent 16a79eb commit a5e0684
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/socket-stream-client/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,7 @@ export class ClientStream extends StreamClientCommon {
_sockjsProtocolsWhitelist() {
// only allow polling protocols. no streaming. streaming
// makes safari spin.
var protocolsWhitelist = [
'xdr-polling',
'xhr-polling',
'iframe-xhr-polling',
'jsonp-polling'
];
var protocolsWhitelist = ['xhr-polling'];

// iOS 4 and 5 and below crash when using websockets over certain
// proxies. this seems to be resolved with iOS 6. eg
Expand Down

0 comments on commit a5e0684

Please sign in to comment.