You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serve API and Game Server on same port with option to split (#343)
* Add option to use eigther one or two ports for socket and http api
* Use deployable single port mode by default for server.js
* Update docs and examples with single-port default server mode
* edit some comments
* fix TODO about koa mock not being called
* wrap ports in Number()
Copy file name to clipboardExpand all lines: docs/api/API.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# API
2
2
3
-
The [Server](/api/Server) object hosts a REST API that can be used to
4
-
create and join games. It is particularly useful when you want to
3
+
The [Server](/api/Server) hosts a REST API that can be used to create and join games. It is particularly useful when you want to
5
4
authenticate clients to prove that they have the right to send
6
5
actions on behalf of a player.
7
6
@@ -11,10 +10,6 @@ A game that is authenticated will not accept moves from a client on behalf of a
11
10
12
11
Use the `create` API call to create a game that requires credential tokens. When you call the `join` API, you can retrieve the credential token for a particular player.
13
12
14
-
The API is available at server `port + 1` by default (i.e. if your
15
-
server is at `localhost:8000`, then the API is hosted at
0 commit comments