diff options
author | Dessalines <tyhou13@gmx.com> | 2019-03-20 18:22:31 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-03-20 18:22:31 -0700 |
commit | 816aa0b15f3766e340d8722f03e8b3a7633ab6fb (patch) | |
tree | 23dd0fc329e8f08c71dc6f10dd398b35d92c047c /ui/src/env.ts | |
parent | 064d7f84b25236195eeb33a8671935bc9df37e57 (diff) |
Adding initial UI and Websocket server.
Diffstat (limited to 'ui/src/env.ts')
-rw-r--r-- | ui/src/env.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/src/env.ts b/ui/src/env.ts new file mode 100644 index 00000000..a8e72d90 --- /dev/null +++ b/ui/src/env.ts @@ -0,0 +1,3 @@ +// export const endpoint = window.location.origin; +export const endpoint = "http://localhost:8080"; +export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint.substr(7) + '/service/ws'; |