module core import net.websocket fn connect_ws(url string) ?&websocket.Client { mut ws := websocket.new_client(url) ? ws.connect() ? return &ws }