aboutsummaryrefslogtreecommitdiffstats
path: root/l/src/main.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'l/src/main.lisp')
-rw-r--r--l/src/main.lisp11
1 files changed, 4 insertions, 7 deletions
diff --git a/l/src/main.lisp b/l/src/main.lisp
index d1336d7..969e44f 100644
--- a/l/src/main.lisp
+++ b/l/src/main.lisp
@@ -5,15 +5,12 @@
(defvar *wg* (wait-group:make-wait-group))
(defun main ()
- (wsd:start-connection *client*)
+ (with-websocket-connection (*client*)
+ (wsd:on :message *client* #'ws-on-message)
- (wsd:on :message *client* #'ws-on-message)
+ (websocket-send *client* (target-get-targets-msg 1))
- (websocket-send *client* (target-get-targets-msg 1))
-
- (wait-group:wait *wg*)
-
- (wsd:close-connection *client*))
+ (wait-group:wait *wg*)))
(defun target-get-targets-msg (call-id)
(jsown:to-json