flaambe
4d01b2c84c
test: remove deprecated Buffer usage ( #3481 )
2019-09-20 10:50:12 +02:00
Jonatan Juárez
82271921db
[docs] Fix the default value of the 'origins' parameter ( #3464 )
...
Fix documentation about default origins value. The default should read `*:*` instead of `*
2019-09-20 10:37:54 +02:00
Damien Arrachequesne
2917942b3e
[docs] Clarify private messaging in the emit cheatsheet ( #3232 )
...
The previous version was confusing, as `socket.to(socket.id).emit()` does nothing.
Fixes #3220
2018-04-27 12:50:31 +02:00
Damien Arrachequesne
ac945d1eba
[feat] Add support for dynamic namespaces ( #3195 )
...
This follows #3187 , with a slightly different API.
A dynamic namespace can be created with:
```js
io.of(/^\/dynamic-\d+$/).on('connect', (socket) => { /* ... */ });
```
2018-03-29 23:08:08 +02:00
Scott Gress
ad0c052eff
[docs] Add note in docs for origins(fn) about error needing to be a string. ( #2895 )
2018-03-10 09:03:28 +01:00
Damien Arrachequesne
1f1d64bab6
[fix] Include the protocol in the origins check ( #3198 )
...
Previously, the protocol was not taken in account, which caused the following behaviour:
```js
io.origins('https://foo.example.com:443 '); // ok as a string
io.origins(['https://foo.example.com:443 '); // not ok as an array
```
Fixes #3190
2018-03-10 08:56:42 +01:00
Damien Arrachequesne
c0c79f019e
[feat] Add support for dynamic namespaces ( #3187 )
2018-03-01 00:22:16 +01:00
Damien Arrachequesne
f48a06c040
[feat] Add a 'binary' flag ( #3185 )
...
So that the call to the `has-binary` method can be skipped. Usage:
```
// with binary data
socket.binary(true).emit("binary", obj);
// without binary data
socket.binary(false).emit("string", obj);
// call to hasBin
socket.emit("guess", obj);
```
2018-02-28 23:00:16 +01:00
Carson McKinstry
3f611654f2
[docs] Fix a grammar mistake in the API docs ( #3076 )
2017-10-07 15:08:14 +02:00
Vyacheslav Aristov
e26b71c78e
[docs] Fix typo in API docs ( #3066 )
2017-10-07 14:36:02 +02:00
Gabriel Hautclocq
9d170a75d0
[docs] Add io.emit in the cheat sheet ( #2992 )
2017-07-01 07:57:34 +02:00
Nicolas Coden
7199d1b6ef
[docs] Fix misnamed 'Object.keys' in API docs ( #2979 )
2017-06-19 12:16:26 +02:00
Damien Arrachequesne
410f5bcb8e
[docs] Update API documentation ( #2973 )
2017-06-13 23:05:26 +02:00
Caleb
199eec648e
[docs] Replace non-breaking space with proper whitespace ( #2913 )
2017-04-19 22:19:57 +02:00
Faraz Patankar
f1b39a6b1d
[docs] Update emit cheatsheet ( #2906 )
2017-04-03 07:20:38 +02:00
Damien Arrachequesne
240b154960
[docs] Explicitly document that Server extends EventEmitter ( #2874 )
2017-03-29 14:13:04 +02:00
efkan
c5b7738730
[docs] Add server.engine.generateId attribute ( #2880 )
2017-03-29 13:52:07 +02:00
SwhGo_oN
e40accf7a1
[docs] Fix documentation for 'connect' event ( #2898 )
2017-03-19 00:33:59 +01:00
Damien Arrachequesne
01a4623613
[feat] Allow to join several rooms at once ( #2879 )
2017-02-26 09:15:32 +01:00
Tim Ruffles
5b79ab1af1
[docs] Update the wording to match the code example ( #2853 )
2017-02-13 23:52:07 +01:00
Damien Arrachequesne
3b92cc2b26
[feature] Allow the use of custom parsers ( #2829 )
2017-01-24 07:10:19 +01:00
Damien Arrachequesne
b754cff2b4
[docs] Fix documentation for local flag ( #2816 )
2017-01-10 18:10:56 +01:00
Damien Arrachequesne
706ca2a0c1
[docs] Add emit cheatsheet ( #2815 )
2017-01-10 17:54:09 +01:00
Damien Arrachequesne
accd0bd64a
[docs] Add pingInterval/pingTimeout/transports options in the API documentation ( #2814 )
2017-01-10 17:50:38 +01:00
Damien Arrachequesne
131a2befec
[docs] Add an example for socket.join() method ( #2813 )
2017-01-10 17:46:54 +01:00
Damien Arrachequesne
0be865f614
[docs] Fix a typo on clients method in the API documentation ( #2812 )
2017-01-10 17:41:31 +01:00
Andrea Accardo
e04de3c2c8
[docs] Fix wrong argument name in API.md ( #2802 )
2017-01-04 06:37:12 +01:00
Damien Arrachequesne
255b845596
[docs] API documentation ( #2784 )
2016-12-30 16:10:54 +01:00