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
Copy file name to clipboardExpand all lines: docs/API.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ See [above](#new-serverhttpserver-options) for available options.
117
117
118
118
The default (`/`) namespace.
119
119
120
-
####server.serveClient([value])
120
+
####server.serveClient([value])
121
121
122
122
-`value`_(Boolean)_
123
123
-**Returns**`Server|Boolean`
@@ -134,14 +134,14 @@ io.serveClient(false);
134
134
io.attach(http);
135
135
```
136
136
137
-
####server.path([value])
137
+
####server.path([value])
138
138
139
139
-`value`_(String)_
140
140
-**Returns**`Server|String`
141
141
142
142
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.
143
143
144
-
####server.adapter([value])
144
+
####server.adapter([value])
145
145
146
146
-`value`_(Adapter)_
147
147
-**Returns**`Server|Adapter`
@@ -181,15 +181,15 @@ Attaches the `Server` to an engine.io instance on `httpServer` with the supplied
181
181
182
182
Attaches the `Server` to an engine.io instance on a new http.Server with the supplied `options` (optionally).
183
183
184
-
####server.listen(httpServer[, options])
184
+
####server.listen(httpServer[, options])
185
185
186
186
Synonym of [server.attach(httpServer[, options])](#serverattachhttpserver-options).
187
187
188
188
#### server.listen(port[, options])
189
189
190
190
Synonym of [server.attach(port[, options])](#serverattachport-options).
0 commit comments