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

Uncaught TypeError: this.transport.subscribeMatchData is not a function #5

Open
rizen opened this issue Apr 10, 2022 · 1 comment
Open

Comments

@rizen
Copy link

rizen commented Apr 10, 2022

If I try to create a multiplayer game using this library, I get the titular error.

It doesn't matter if I use SocketIO or Local as the multiplayer type.

Have you tried making a multiplayer game with this library?

Here's what my invocation looks like.

import { createApp } from 'vue';
import App from './App.vue';
import { boardgamePlugin } from 'vue3-boardgame';
import { HangMan } from './HangMan';
import { SocketIO } from 'boardgame.io/multiplayer';

let params = new URL(document.location).searchParams;

const app = createApp(App);
app.config.unwrapInjectedRef = true; // needed until vue 3.3
app.use(boardgamePlugin, {
  options: {
    game: HangMan,
    multiplayer: SocketIO({ server: 'localhost:8888' }),
    playerID: params.get('p'),
  }, 
  autostart: true,
  useMixin: false,
  useProvide: true,
});

app.mount('#app');
@RaySollium99
Copy link

Same thing here

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