question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insufficient documentation/guide on multiplayer

See original GitHub issue

The Multiplayer guide mentions that

All you need to do is add multiplayer: true to your client config object […] You can open multiple browser tabs and you will find that the game board is synced in realtime across all of them

Apparently, that’s not all that is needed. There’s some magic server code that needs to be written.

Furthermore, its not specified where exactly the code snippet with server.run(8000); is supposed to be put and how it can be executed. The same about the mention of Koa app.

I looked at the examples; multiple games and single/multi player modes are baked in a single app. Inferring the relevant parts from examples, to make just a multiplayer game for example, is difficult. Add to that the Koa and webpack config complexity that is in the examples but nowhere in the guide or documentation.

If the user is expected to already know certain things beforehand (obvious one being React.js) that may not be very obvious, list of such things should be documented.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolodaviscommented, Mar 12, 2018

I’ve added a lot more detail in https://github.com/google/boardgame.io/commit/477aaf3a3dc97de361c2b2b5785b000562d55b58 (you can view them on the docs here). Let me know if these steps work for you!

The documentation looks a lot better now. Thanks for bringing this to my attention.

1reaction
Stefan-Hankecommented, Mar 18, 2018

@viranch There are two gitter rooms, discussion takes place in the General one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insufficient documentation/guide on multiplayer #138 - GitHub
The Multiplayer guide mentions that All you need to do is add multiplayer: true to your client config object [...] You can open...
Read more >
Header documentation lacking, especially for server travel ...
I've been having trouble looking into some reoccuring buggy behaviour with client connections using the editor and different combinations of ...
Read more >
Multiplayer guide! - Sir, You Are Being Hunted
With the public release of multiplayer, we've posted a guide to multiplayer features and server hosting here . Enjoy!
Read more >
Multiplayer object - Construct 2 Documentation
The Multiplayer object provides features to develop real-time online multiplayer games. It uses WebRTC DataChannels, a peer-to-peer ...
Read more >
Matchmaking - PlayFab | Microsoft Learn
PlayFab Multiplayer Lobby Quickstart - PlayFab. Quickstart guide to create a lobby with notifications. Matchmaking quickstart - client SDK - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found