Maxime Kjaer
259f29720b
docs(examples): remove unnecessary type annotations ( #3855 )
...
Typed events in Socket.IO 4.0 remove the need for writing type
annotations in callbacks of reserved events.
2021-03-24 23:12:22 +01:00
Damien Arrachequesne
b4ae8d2e19
docs(examples): update all examples to Socket.IO v4
2021-03-18 15:07:04 +01:00
Damien Arrachequesne
292d62ea69
docs(examples): update TypeScript example
...
Includes b3de861a92
2020-12-30 09:45:22 +01:00
Damien Arrachequesne
f7e0009120
docs(examples): update TypeScript example
...
In order to test 50671d984a
[skip ci]
2020-11-09 10:47:50 +01:00
Damien Arrachequesne
64056d6616
docs(examples): update TypeScript example
2020-10-27 22:18:07 +01:00
Damien Arrachequesne
a81b9f31cf
docs(examples): add example with TypeScript
...
There are two issues with the typings:
- on the client-side, the Emitter class is not properly imported (hence the @ts-ignore)
- on the server-side, the Socket class is not exported (in order to cast it in the "connect" event)
2020-10-15 13:38:46 +02:00