Commit Graph

66 Commits

Author SHA1 Message Date
BrennanConroy b006a2c789
Clean up logging (#3247) 2018-11-01 15:47:01 -07:00
BrennanConroy 865de16086
Enable cookie jar for Node client using request package (#3202) 2018-10-30 22:13:24 -07:00
BrennanConroy 63900a462b
Use Node https module for https requests (#3171) 2018-10-23 08:21:54 -07:00
BrennanConroy 1f91b523f7
Add error to negotiate (#2998) 2018-09-27 20:27:06 -07:00
BrennanConroy 3c8c8ba333
[TS] Reject handshake if connection closes before response (#3000) 2018-09-27 08:29:16 -07:00
BrennanConroy ef3d3b1cdd
[TS] Change websocket library in Node (#2989) 2018-09-21 08:58:54 -07:00
BrennanConroy 4dfd93c1d7
[TS] Wait for handshake response (#2983) 2018-09-20 14:23:43 -07:00
BrennanConroy a51eec7a1d
Add NodeJS in-box support (#2910) 2018-09-11 13:16:15 -07:00
BrennanConroy f8a46faf9d
Detect ASP.NET SignalR server connection attempt (#2820) 2018-08-22 11:17:04 -07:00
BrennanConroy 5f4d0dac3c
Ignore failures from sending ping (#2840) 2018-08-22 10:36:36 -07:00
BrennanConroy 53ceaf1b2c
[TS Client] Properly wait for WebSocket close (#2804) 2018-08-14 15:34:31 -07:00
BrennanConroy 6a6e1743ae
Expose full implementation for configureLogging in ESM definition file (#2770) 2018-08-08 16:38:43 -07:00
BrennanConroy 186a85b7e0
Add timestamp to logs TS client (#2760) 2018-08-08 11:28:30 -07:00
Andrew Stanton-Nurse fddf341913 Merge branch 'release/2.1' into release/2.2 2018-08-07 14:36:44 -07:00
Andrew Stanton-Nurse c1aa708a8b
TypeScript improvements and tslib dep (#2692) 2018-08-07 14:15:07 -07:00
BrennanConroy cef7dfcdbb
Check connection state in ping Typescript client (#2753) 2018-08-07 14:14:32 -07:00
BrennanConroy fc8979aeca
Update TS docs for docs.microsoft.com generation (#2605) 2018-08-07 13:36:10 -07:00
BrennanConroy 31b6ad69ae
Increase poll timeout in TS client (#2737) 2018-08-06 19:14:44 -07:00
BrennanConroy 7d4df89025
Back Port WebPack (#2641) 2018-08-01 13:55:08 -07:00
BrennanConroy 651b39bc90 Revert "Merge branch 'master' into release/2.2"
This reverts commit 785200877a, reversing
changes made to 3d6e1e69fd.
2018-07-31 15:24:33 -07:00
Mikael Mengistu 4752d45e0e
Add the minorVersion field to the HandshakeResponse in the TS client for 3.0 (#2657) 2018-07-18 15:47:52 -07:00
Andrew Stanton-Nurse b124cb5283
Switch UMD build to WebPack (#2496) 2018-06-15 10:55:55 -07:00
BrennanConroy 296fcc9423
Add JS unit tests for SSE (#2484) 2018-06-14 13:44:36 -07:00
Andrew Stanton-Nurse 7317762b29
fix #2407 by tslinting tests before running (#2459) 2018-06-11 14:19:33 -07:00
BrennanConroy 10efae64e0
Add WebSocket and EventSource polyfills to options (#2408) 2018-06-01 09:25:25 -07:00
Andrew Stanton-Nurse 5d37d312e0
Add Content-Type header in HttpClient.ts (#2242) (#2413) 2018-05-31 11:38:48 -07:00
James Newton-King 30a59f6df7
TypeScript strict mode (#2388) 2018-05-31 12:04:48 +12:00
Dylan Dmitri Gray f0f1df9b4a
PingInterval -> KeepAliveInterval (#2384) 2018-05-25 15:15:38 -07:00
Dylan Dmitri Gray 736b7f5042
Client pings server on interval (#2309) 2018-05-23 13:53:23 -07:00
James Newton-King 44f914b9b2
Refactor LongPollingTransport stop in TS client to align with C# client (#2292) 2018-05-22 11:12:24 +12:00
Brian Mortensen cd8f238f83 Add Content-Type header in HttpClient.ts (#2242) 2018-05-17 10:31:39 +12:00
James Newton-King 43aa392dff
Add state to TS HubConnection (#2268) 2018-05-16 08:43:08 +12:00
Andrew Stanton-Nurse f005e80b14 Embed version in the JavaScript client (#2229) 2018-05-11 12:55:22 -07:00
Andrew Stanton-Nurse 76a6cbcd84
Embed version in the JavaScript client (#2229) 2018-05-11 12:54:30 -07:00
Andrew Stanton-Nurse e3e80b957c
switch tests to 'jest' (#2193) 2018-05-04 12:51:33 -07:00
Andrew Stanton-Nurse c009e15b0c
Make HttpTransportType a flags enum in TypeScript (#2179) 2018-05-04 09:05:29 -07:00
Andrew Stanton-Nurse 68700d3972
Merge pull request #2195 from aspnet/anurse/clean-up-shutdown-timer 2018-05-03 19:11:14 -07:00
Andrew Stanton-Nurse 1282fde338 less flaky test 2018-05-03 17:55:25 -07:00
Andrew Stanton-Nurse 6f77eaca13 add tests 2018-05-03 12:09:07 -07:00
Andrew Stanton-Nurse fdfd5381a5 clean up the shutdown timer 2018-05-03 09:26:48 -07:00
Andrew Stanton-Nurse b1010b7bd5
fix #2171 by adding HttpTransportType.None (#2172) 2018-05-02 14:34:23 -07:00
Andrew Stanton-Nurse ae329edd2a
Fix #2169 by correcting shutdown timeout (#2170) 2018-05-01 16:37:22 -07:00
Andrew Stanton-Nurse c89cf1a12b
JSDocs (#2168) 2018-05-01 16:06:35 -07:00
Andrew Stanton-Nurse 01c0690cc9
Final TS tidyup (#2120) 2018-04-20 16:33:45 -07:00
Andrew Stanton-Nurse dacea904cc
privatize IConnection and HttpConnection (#2105) 2018-04-20 10:14:54 -07:00
Andrew Stanton-Nurse 65adcdd73a
HubConnectionBuilder.ts (#2063) 2018-04-19 12:09:47 -07:00
David Fowler 903fe1e902
Added support for negotiate response to redirect the client to another SignalR endpoint (#2070)
- Add a SkipNegotiation flag to the .NET and ts client
to allow skipping the negotiation phase. Don't infer it based on the transport type.
-  Updated the negotiate protocol to support returning a redirect url
- Added support to .NET client to handle redirect negotiations
- Handle poorly written endpoints that sends infinite redirects
- Added access token support and an infinite redirect guard
- Add delete handler for stopping the transport
2018-04-18 14:22:45 -07:00
Mikael Mengistu d9272032d0
Revert "Use xhr.onreadystatechange instead of xhr.onload (#1838)" (#2065)
This reverts commit 5e38303377.
2018-04-18 17:38:27 +00:00
Andrew Stanton-Nurse 31debcbf9f
Simple TypeScript API Review Feedback (#2050) 2018-04-17 10:51:52 -07:00
David Fowler 05d6bbb782
Flush first long poll immediately (#2032)
There was a race condition between the first poll and any other http request that was sent. 
In particular, if you called StartAsync then StopAsync it was possible for the delete to happen before the poll started leading to 400 errors. This change fixes that by making the very first poll
return immediately so that the client can use that to determine if there was an error connecting.
2018-04-17 00:49:26 -07:00