优化
This commit is contained in:
1 parent
154b913f73
commit
9b3f36996b
2 files changed
+5
-1
No files matched your search
@@ -98,7 +98,7 @@ const debug = (
|
||||
const socket = new WebSocket(url);
|
||||
|
||||
socket.onopen = () => {
|
||||
socket.send(`{"tag":"${sourceUrl}", "key":"${searchKey}"}`);
|
||||
socket.send(JSON.stringify({ tag: sourceUrl, key: searchKey }));
|
||||
};
|
||||
socket.onmessage = ({ data }) => onReceive(data);
|
||||
|
||||
|
||||
Reference in new issue
Block a user