1818 <Button col =" 2" text =" Clear pins" @tap =" clearPins" ></Button >
1919 </GridLayout >
2020
21- <GridLayout row =" 0" rowSpan =" 2" rows =" auto" columns =" *, *, * " v-show =" websocket && !isLoading" >
21+ <GridLayout row =" 0" rowSpan =" 2" rows =" auto" columns =" *, *" v-show =" websocket && !isLoading" >
2222 <Button col =" 0" text =" Send text" @tap =" sendMessage" ></Button >
23- <Button col =" 1" text =" Send binary" @tap =" sendBinary" ></Button >
24- <Button col =" 2" text =" Disconnect" @tap =" disconnectWebsocket" ></Button >
23+ <Button col =" 1" text =" Disconnect" @tap =" disconnectWebsocket" ></Button >
2524 </GridLayout >
2625
2726 <GridLayout row =" 2" rows =" *" columns =" *" style =" border-width : 1 ; border-color : #e0e0e0 ; margin : 10 ; padding : 10 ;" >
@@ -140,7 +139,7 @@ export default {
140139 this .isLoading = true ;
141140
142141 newWebsocketConnection ({
143- url: " wss://echo.websocket.org " ,
142+ url: " wss://ws.postman- echo.com/raw " ,
144143 method: " GET" ,
145144 }, {
146145 onClosed : (code , reason ) => {
@@ -186,16 +185,6 @@ export default {
186185 }
187186 });
188187 },
189- sendBinary () {
190- if (this .websocket ) {
191- const blob = new Blob ([" binaryFileContent" ], {
192- type: " image/png" ,
193- });
194-
195- // @ts-ignore
196- this .websocket .sendBinary (Blob .InternalAccessor .getBuffer (blob).buffer .slice (0 ));
197- }
198- },
199188 disconnectWebsocket () {
200189 if (this .websocket ) {
201190 this .websocket .close (1000 , " Goodbye" );
@@ -214,9 +203,9 @@ export default {
214203 },
215204 pinGood () {
216205 certificatePinningClear ();
217- certificatePinningAdd (" *.placeholder.com" , [" CDCU5TkA8n3L8+QM7dyTjfRlxWibigF+1cxMzRhlJV4 =" , " YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg =" , " Vjs8r4z+80wjNcr1YKepWQboSIRi63WsWXhIMN+eWys =" ]);
218- certificatePinningAdd (" **.github.com" , [" ORH27mxcLwxnNpR7e0i6pdDPWLXdpeWgr5bEfFVbxW8 =" , " k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws =" , " WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18 =" ]);
219- certificatePinningAdd (" loripsum.net" , [" 7ReOzYJ7YC1mMc2CWTuaMDuzynt8xZ+HDQ6K8o+4okk =" , " YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg =" , " Vjs8r4z+80wjNcr1YKepWQboSIRi63WsWXhIMN+eWys =" ]);
206+ certificatePinningAdd (" *.placeholder.com" , [" DlYSp/cLxpoA6dBq3hszKK/r0p7Q/pnSRVQnAdQNf/o =" , " FEzVOUp4dF3gI0ZVPRJhFbSJVXR+uQmMH65xhs1glH4 =" , " Y9mvm0exBk1JoQ57f9Vm28jKo5lFm/woKcVxrYxu80o =" ]);
207+ certificatePinningAdd (" **.github.com" , [" uyPYgclc5Jt69vKu92vci6etcBDY8UNTyrHQZJpVoZY =" , " e0IRz5Tio3GA1Xs4fUVWmH1xHDiH2dMbVtCBSkOIdqM =" , " r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E =" ]);
208+ certificatePinningAdd (" loripsum.net" , [" 9lgc3b7Et90OtTYg2rJRAl18RhhQIuI/z9NCj27wSpc =" , " jQJTbIh0grw0/1TkHSumWb+Fs0Ggogr621gT3PvPKG0 =" , " C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M =" ]);
220209
221210 this .contentType = " text" ;
222211 this .contentText = " Good certificates pinned, try to do a request" ;
0 commit comments