aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/backends
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-09 13:01:25 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-09 13:01:25 +0100
commit77f05178ad23a8bb1f2cc43e1cdcf0593acd43d2 (patch)
tree8a13e6257146dc6a535dca220f7cb374cbd91a73 /web/src/js/backends
parenta0ddedff6f2e6420ab44a7763132e80a8b8075d5 (diff)
downloadmitmproxy-77f05178ad23a8bb1f2cc43e1cdcf0593acd43d2.tar.gz
mitmproxy-77f05178ad23a8bb1f2cc43e1cdcf0593acd43d2.tar.bz2
mitmproxy-77f05178ad23a8bb1f2cc43e1cdcf0593acd43d2.zip
mitmweb: minor fixes
Diffstat (limited to 'web/src/js/backends')
-rw-r--r--web/src/js/backends/websocket.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/src/js/backends/websocket.js b/web/src/js/backends/websocket.js
index 40dde0d7..44b260c9 100644
--- a/web/src/js/backends/websocket.js
+++ b/web/src/js/backends/websocket.js
@@ -1,6 +1,11 @@
+/**
+ * The WebSocket backend is responsible for updating our knowledge of flows and events
+ * from the REST API and live updates delivered via a WebSocket connection.
+ * An alternative backend may use the REST API only to host static instances.
+ */
import { fetchApi } from "../utils"
-export const CMD_RESET = 'reset'
+const CMD_RESET = 'reset'
export default class WebsocketBackend {
constructor(store) {