8000 Vue Support · Issue #903 · rivet-gg/actor-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vue Support #903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NathanFlurry opened this issue Apr 14, 2025 · 2 comments
Open

Vue Support #903

NathanFlurry opened this issue Apr 14, 2025 · 2 comments

Comments

@NathanFlurry
Copy link
Member

No description provided.

Copy link
linear bot commented Apr 14, 2025

ACTR-116 Vue Support

@xar
Copy link
Contributor
xar commented Apr 14, 2025

fyi - if anyones wants to use it in nuxt:

// .env
NUXT_PUBLIC_ACTORS_ENDPOINT=http://localhost:6097/actors

// plugins/actors.ts
import { createClient } from 'actor-core/client';
import type { AppType } from '...';

export default defineNuxtPlugin(() => {
    const { actorsEndpoint } = useRuntimeConfig().public;

    const actors = createClient<AppType>(actorsEndpoint as string);

    return {
        provide: {
            actors,
        },
    };
});

then calling via:
$actors.chatRoom....
in app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0