@symfony/ux-turbo
Version:
Hotwire Turbo integration for Symfony
22 lines (21 loc) • 651 B
TypeScript
import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
static values: {
topic: StringConstructor;
topics: ArrayConstructor;
hub: StringConstructor;
withCredentials: BooleanConstructor;
};
es: EventSource | undefined;
url: string | undefined;
readonly topicValue: string;
readonly topicsValue: string[];
readonly withCredentialsValue: boolean;
readonly hubValue: string;
readonly hasHubValue: boolean;
readonly hasTopicValue: boolean;
readonly hasTopicsValue: boolean;
initialize(): void;
connect(): void;
disconnect(): void;
}