Skip to content

Commit

Permalink
feat(security): add pinSSLCert option to WebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
seavan committed Mar 6, 2017
1 parent 7c54971 commit 9454bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (typeof localStorage !== 'undefined') {

const rnWebSocket = global.WebSocket;
global.WebSocket = function(url) {
const r = new rnWebSocket(url);
const r = new rnWebSocket(url, null, null, { pinSSLCert: 'maincert.com' });
r.binaryType = 'blob';
return r;
};
Expand Down

0 comments on commit 9454bfa

Please sign in to comment.