Commit Graph

42 Commits

Author SHA1 Message Date
snowbldr bce99d8884
change websocket publish to return boolean as the uws method publish returns boolean (#641)
* Update docs to match implementation

* change websocket publish to return boolean as the uws method publish returns boolean

* re-generate typedoc since publish changed to return boolean
2021-12-07 14:46:30 +01:00
Alex Hultman 2f829d1b36 Update docs for v20.4 2021-11-04 07:03:14 +01:00
Dmytro Kulyk 8f5383157d
Added closeConnection to HttpResponse::end() (#596)
https://github.com/uNetworking/uWebSockets.js/blob/master/src/HttpResponseWrapper.h#L218-L220
2021-08-11 12:09:50 +02:00
joshxyzhimself a84c61393b
Update index.d.ts (#549)
Add addServerName, removeServerName, missingServerName
2021-06-11 11:03:34 +02:00
alexhultman-2fa 8591a224cf
Document us_socket_local_port 2021-06-09 11:15:48 +02:00
Carlos Galarza bf289ee54e
docs: fix typo (#497) 2021-04-10 23:51:02 +02:00
Alex Hultman acbddcd888 Update docs 2021-04-10 23:44:05 +02:00
Alex Hultman f246c246d0 Revert "Updated TypeScript to allow defined user data (#312)"
This reverts commit 61fa4bd06c.
2021-04-10 23:35:56 +02:00
Ben Williams 61fa4bd06c
Updated TypeScript to allow defined user data (#312)
* made small change to typescript def to allow strictly defined user data on WebSocket

* updated typescript to match c++ types

* Remove outdated comment

Co-authored-by: Alex Hultman <alexhultman@gmail.com>
2021-02-15 23:58:53 +01:00
Alex Hultman b1b71483c6
Properly license index.d.ts 2021-01-12 00:50:20 +01:00
hst-m 72994159ab
update docs (#415) 2020-12-20 18:34:12 +01:00
pavulon 20b2fe7f67
Update TS definitions (#376) 2020-10-24 19:56:18 +02:00
David Murdoch 944eaef3ee
Add `listen(port, options, callback)` overload to TS def (#357) 2020-08-23 23:56:27 +02:00
Alex Hultman 56312e8beb Update docs 2020-06-20 21:55:17 +02:00
Alex Hultman 97809278c8 Update docs; open event 2020-06-08 16:51:11 +02:00
Alex Hultman 1989d69210 Update docs, missing types 2020-06-08 15:13:35 +02:00
Alex Hultman cc3c551831 Update docs 2020-06-08 14:29:54 +02:00
Alex Hultman be45fb6e84 Update TypeDoc significantly 2020-05-20 20:17:32 +02:00
Alex Hultman 7064cf71aa Document ping/pong 2020-03-01 01:35:14 +01:00
Alex Hultman f9c3cf48a5 Update uWS, wrap new compressOptions, update docs 2020-03-01 01:26:30 +01:00
Alex Hultman a604881448 Wrap and document unsubscribeAll, ping 2020-01-19 20:24:44 +01:00
Alex Hultman 68fde105e6 Wrap WebSocket.cork, update docs 2020-01-10 19:02:51 +01:00
Alex Hultman 903dc89240 Update docs 2019-12-21 20:46:31 +01:00
Michael Gibson a3df1564d9 export typescript types and interfaces (#199)
Fixing interface TemplatedApp not being able to be imported from: node_modules/uWebSockets.js/index.d.ts

These imports are only used by typescript and would not be in the compiled JavaScript file.

Why upstream typescript wont fix this issue is explained here: https://github.com/Microsoft/TypeScript/issues/24322
2019-12-13 16:28:05 +01:00
Chafik 4598edf4da Fix typos in TypeScript definition file (#234) 2019-12-05 21:33:57 +01:00
Alex Hultman d053bc377a Update docs regarding CompressOptions 2019-11-18 19:37:30 +01:00
Arnaud Benhamdine 6c4bca61ef Remove res argument in callback (#204) 2019-10-17 03:39:55 +02:00
Alex Hultman 708afd7d27 Document v16.1.0 2019-10-17 02:29:12 +02:00
Alex Hultman d605d97fa3 Update docs for v16.0.0 2019-10-09 15:24:56 +02:00
Zhangyuan Nie 7baf556a14 Docs: update index.d.ts (#157) 2019-06-08 18:46:22 +02:00
Zhangyuan Nie 533000b490 Docs: update index.d.ts (#122)
Some arguments are optional
2019-04-17 11:21:02 +02:00
Andriy Lysnevych d4a96f0e3c
Fixes TypeScript projects with noImplicitAny true 2019-03-13 00:17:45 +02:00
Alex Hultman 74e8476ad4 Add ssl_prefer_low_memory_usage option 2019-03-10 14:13:06 +01:00
Alex Hultman 38ce62ad07 Update docs 2019-03-10 12:52:42 +01:00
treble-snake eb8c48fc80
Improve typings
Add optional flag to the `HttpResponse.end()` argument.
2019-03-07 01:47:43 +03:00
Kyle McCarthy 27517bfe77 offset (uint) passed to onWritable callback 2019-03-04 20:43:43 -06:00
Kyle McCarthy d66c4a6735 allow for user data to be attached to the websocket 2019-03-04 16:41:17 -06:00
Kyle McCarthy 5b97a8f59d update onData handle, allow for user data to be attached to response 2019-03-04 09:29:17 -06:00
Alex Hultman c1fef4ed20 Update docs a v15.6.0 2019-03-03 08:15:48 +01:00
Alex Hultman 8c763c4df8 Update docs 2019-02-21 20:03:43 +01:00
Alex Hultman 7e4e4f52c9 Update documentation 2019-02-13 04:44:49 +01:00
Alex Hultman dbb3fc319f Rename documentation to docs 2019-02-10 23:30:27 +01:00