Skip to content
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

Connection documentation is out of date #1

Open
hez opened this issue Apr 25, 2023 · 0 comments
Open

Connection documentation is out of date #1

hez opened this issue Apr 25, 2023 · 0 comments

Comments

@hez
Copy link

hez commented Apr 25, 2023

The documentation suggests using this code

import LiveState from "phx-live-state";

export const liveState = new LiveState('ws://localhost:4002/socket', 'todo:all');

Which yields a compile time error:

src/live-state.tsx:3:81 - error TS2554: Expected 1 arguments, but got 2.

3 export const liveState = new LiveState('ws://localhost:4002/socket', 'todo:all');
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

1 participant