diff options
Diffstat (limited to 'extension/background.js')
-rw-r--r-- | extension/background.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extension/background.js b/extension/background.js new file mode 100644 index 0000000..3fa39c1 --- /dev/null +++ b/extension/background.js @@ -0,0 +1,11 @@ +const ws = new WebSocket("ws://localhost:8888"); + +ws.onmessage = function(event) { + const req = JSON.parse(event.data); + + const response = { + names: [".", "..", "hi.txt"] + }; + + ws.send(JSON.stringify(response)); +}; |