From b5c2f3a6ed194245e9c584f25b28d8f7c8f90218 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 3 Feb 2021 19:12:40 +0100 Subject: config: Initialise a new websocket-driver client on new config Add a new `make-config` function to construct a `config` object. This creates a new websocket-driver client and stores it in the `ws-client` slot in the `config`. Before this, I thought about using a writer method on the `socket-url` slot that creates a new client. This didn't work in `make-instance` though. Perhaps there's a way to have the `:initarg` use the writer, but I'm not sure. --- l/src/option.lisp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'l/src/option.lisp') diff --git a/l/src/option.lisp b/l/src/option.lisp index 22e6052..2c3f0d0 100644 --- a/l/src/option.lisp +++ b/l/src/option.lisp @@ -37,6 +37,5 @@ (opts:exit 64)) - (make-instance 'config - :socket-url (getf options :socket-url) - :extension-ids free-args))) + (make-config :socket-url (getf options :socket-url) + :extension-ids free-args))) -- cgit v1.2.3