We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3d9f9 commit ea27fc1Copy full SHA for ea27fc1
README.md
@@ -46,8 +46,8 @@ const response = await fetch('http://localhost:3000/send-to-all-clients?encoding
46
body: '>4\r\n$6\r\nMOVING\r\n:1\r\n:2\r\n$6\r\nhost:3\r\n'
47
});
48
49
-const result = await response.text();
50
-console.log(result.includes('"success":true') ? 'Injected' : 'Failed');
+const result = await response.json();
+console.log(result.success ? 'Injected' : 'Failed');
51
```
52
53
**Go Example:**
0 commit comments