From b57a15a9f736986f232f1d4b21b811ce2958b8fa Mon Sep 17 00:00:00 2001 From: cmontella Date: Tue, 8 Aug 2017 17:07:52 -0700 Subject: [PATCH 1/2] route console logs through the websocket for the TS client --- libraries/console/console.eve | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/libraries/console/console.eve b/libraries/console/console.eve index 07c1ae9..308299a 100644 --- a/libraries/console/console.eve +++ b/libraries/console/console.eve @@ -28,4 +28,25 @@ search [#console/error text] watch console ("error", text) -end \ No newline at end of file +end + +## For the TS side + +The TS watcher interface currently relies on passing messages through the websocket watcher + +search + [#console/log text] +watch client/websocket + ("console/log", text) +end + +search + [#console/warn text] +watch client/websocket + ("console/warn", text) +end + +search + [#console/error text] +watch client/websocket + ("console/error", text) \ No newline at end of file From 331883fab73e2e88b45d65c81cb7d4187360a9d1 Mon Sep 17 00:00:00 2001 From: cmontella Date: Tue, 8 Aug 2017 17:12:39 -0700 Subject: [PATCH 2/2] include end keyword --- libraries/console/console.eve | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/console/console.eve b/libraries/console/console.eve index 308299a..2769548 100644 --- a/libraries/console/console.eve +++ b/libraries/console/console.eve @@ -49,4 +49,5 @@ end search [#console/error text] watch client/websocket - ("console/error", text) \ No newline at end of file + ("console/error", text) +end \ No newline at end of file