Skip to content

Instantly share code, notes, and snippets.

@jhcheung
Created June 8, 2020 03:03
Show Gist options
  • Save jhcheung/287679c304af956780cf67c8afb990eb to your computer and use it in GitHub Desktop.
Save jhcheung/287679c304af956780cf67c8afb990eb to your computer and use it in GitHub Desktop.
boardgame.io client setup
import { SocketIO } from 'boardgame.io/multiplayer'
const TicTacToeClient = Client({
game: TicTacToe,
board: TicTacToeBoard,
multiplayer: SocketIO({ server: 'localhost:8000' }),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment