Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ See [above](#new-serverhttpserver-options) for available options.

The default (`/`) namespace.

#### server.serveClient([value])
#### server.serveClient([value])

- `value` _(Boolean)_
- **Returns** `Server|Boolean`
Expand All @@ -134,14 +134,14 @@ io.serveClient(false);
io.attach(http);
```

#### server.path([value])
#### server.path([value])

- `value` _(String)_
- **Returns** `Server|String`

Sets the path `value` under which `engine.io` and the static files will be served. Defaults to `/socket.io`. If no arguments are supplied this method returns the current value.

#### server.adapter([value])
#### server.adapter([value])

- `value` _(Adapter)_
- **Returns** `Server|Adapter`
Expand Down Expand Up @@ -181,15 +181,15 @@ Attaches the `Server` to an engine.io instance on `httpServer` with the supplied

Attaches the `Server` to an engine.io instance on a new http.Server with the supplied `options` (optionally).

#### server.listen(httpServer[, options])
#### server.listen(httpServer[, options])

Synonym of [server.attach(httpServer[, options])](#serverattachhttpserver-options).

#### server.listen(port[, options])

Synonym of [server.attach(port[, options])](#serverattachport-options).

#### server.bind(engine)
#### server.bind(engine)

- `engine` _(engine.Server)_
- **Returns** `Server`
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

## Table of Contents

#### Getting started
#### Getting started

- [Write a chat application](http://socket.io/get-started/chat/)

Expand Down