Created
June 8, 2020 03:03
-
-
Save jhcheung/287679c304af956780cf67c8afb990eb to your computer and use it in GitHub Desktop.
boardgame.io client setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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