mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-22 03:10:43 +08:00
feat(wsc) brute encrypt demo
This commit is contained in:
+2
-1
@@ -22,7 +22,7 @@ export class WebSocketManager {
|
||||
|
||||
this.socket.onopen = () => {
|
||||
chrome.runtime.sendMessage({action: ActionType.STATUS, connected: true, port: port});
|
||||
this.startHeartbeat();
|
||||
// this.startHeartbeat();
|
||||
};
|
||||
|
||||
this.socket.onmessage = (event) => {
|
||||
@@ -42,6 +42,7 @@ export class WebSocketManager {
|
||||
sendMessage(message) {
|
||||
if (this.isConnected()) {
|
||||
try {
|
||||
console.log("发射", message)
|
||||
this.socket.send(JSON.stringify(message));
|
||||
} catch (e) {
|
||||
console.error("Error sending message:", e);
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ function App() {
|
||||
>
|
||||
<div className="App">
|
||||
<Contro/>
|
||||
<Proxifier/>
|
||||
{/*<Proxifier/>*/}
|
||||
|
||||
<EvalInTab/>
|
||||
</div>
|
||||
|
||||
@@ -68,6 +68,7 @@ export const Proxifier: React.FC<ProxifierProps> = () => {
|
||||
wsc.updateProxyStatus();
|
||||
|
||||
wsc.onProxyStatusMessage((msg) => {
|
||||
console.log("msg", msg)
|
||||
if (msg.proxy === undefined || msg.enable === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user