async connect(onmessage) {
            if (this.hasConnection()) {
                return;
            }
            this.socket = await socketCache.getOrCreate(this.type, this.uuid, onmessage);
            this._dispatch("connect");
        }
Connect to the channel.

@param {Function} onmessage - Event handler function for
the underlying websocket message.