mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-25 20:51:52 +08:00
feat(wsc) fuzzer demo
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
export namespace wsc {
|
||||
export enum ActionType {
|
||||
CONNECT = 'connect',
|
||||
SEND_MESSAGE = 'send_message',
|
||||
|
||||
DISCONNECT = 'disconnect',
|
||||
STATUS = 'status',
|
||||
PROXY_STATUS = 'proxy_status',
|
||||
@@ -19,6 +21,13 @@ export namespace wsc {
|
||||
});
|
||||
}
|
||||
|
||||
export function sendMessage(message: any) {
|
||||
chrome.runtime.sendMessage({
|
||||
action: ActionType.SEND_MESSAGE,
|
||||
message: message,
|
||||
});
|
||||
}
|
||||
|
||||
export function disconnect() {
|
||||
chrome.runtime.sendMessage({
|
||||
action: ActionType.DISCONNECT,
|
||||
|
||||
Reference in New Issue
Block a user