Commit Graph

231 Commits

Author SHA1 Message Date
Mikael Mengistu e031662525
Test and package Java client with build.cmd (#2690) 2018-07-30 16:58:25 -07:00
Mikael Mengistu debd0e3905
Merge pull request #2682 from aspnet/release/2.2
Adding Java Client Overloads up to T8. (#2660)
2018-07-25 22:36:15 -07:00
Mikael Mengistu 2a48a9a2c4
Adding Java Client Overloads up to T8. (#2660) 2018-07-25 22:09:03 -07:00
Mikael Mengistu 60c5392fd5
Merge pull request #2679 from aspnet/release/2.2
Parse HandshakeResponse (#2656)
2018-07-25 16:58:24 -07:00
Mikael Mengistu daed55be36
Parse HandshakeResponse (#2656) 2018-07-25 16:23:25 -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
Mikael Mengistu e9151906e1
Adding the Subscription type to remove specific handlers (#2646) 2018-07-17 12:27:16 -07:00
Mikael Mengistu 8919d3897e
Remove handlers from HubConnection (#2628) 2018-07-16 16:14:08 -07:00
Mikael Mengistu 3e53533db3
Adding HubConnection State Enum (#2627) 2018-07-16 14:18:55 -07:00
Mikael Mengistu 25c65a5d85
Add HubMessage abstraction and parse messages from the server into different message types (#2620) 2018-07-16 11:15:28 -07:00
Nate McMaster 172b68a836
Pin version variables to the ASP.NET Core 2.1.2 baseline
This reverts our previous policy of cascading versions on all servicing updates.
This moves variables into the 'pinned' section, and points them to the latest
stable release (versions that were used at the time of the 2.1.2 release).
2018-07-12 11:59:04 -07:00
Mikael Mengistu 2d4fb0af6f
Add support for registering multiple On handlers (#2599) 2018-07-09 15:27:49 -05:00
Mikael Mengistu 229bc12db1
Formatting urls when using the WebSocketsTransport (#2571) 2018-07-03 12:29:33 -07:00
Mikael Mengistu b7f666e91b
Adding Support for On Overloads in Java Client (#2568) (#2583) 2018-07-03 11:44:52 -07:00
Mikael Mengistu 967db6d8e9
Adding HubConnection Tests for the Java Client(#2550) (#2578) 2018-07-02 14:04:30 -07:00
Andrew Stanton-Nurse f4bf222099
make audit happier (#2560) 2018-06-28 12:29:56 -07:00
Andrew Stanton-Nurse b760c6fceb
update some packages (#2536) 2018-06-28 09:32:10 -07:00
BrennanConroy bc8aae5d50
Show errors from Karma (#2545) 2018-06-26 20:47:07 -07:00
Mikael Mengistu 93cfdeb572
Update build.gradle to not use depricated compile (#2544) 2018-06-26 14:44:31 -07:00
Mikael Mengistu b0ce55e6c8
Adding the HubProtocol Layer to the Java Client (#2524) 2018-06-26 14:38:21 -07:00
Mikael Mengistu 6b3437deb7
Initial Java Client(#2521) 2018-06-21 16:12:32 -07:00
Mikael Mengistu af99b9a10c
Add Empty Java Project for New Client(#2499) 2018-06-19 13:48:15 -07:00
BrennanConroy 94d4f9d2fc
Add OSX Jenkins
Fix couple node warnings
2018-06-18 09:17:15 -07:00
Andrew Stanton-Nurse b124cb5283
Switch UMD build to WebPack (#2496) 2018-06-15 10:55:55 -07:00
BrennanConroy 7e832eeb27
Add JS unit tests for WebSockets (#2495) 2018-06-14 16:54:28 -07:00
Andrew Stanton-Nurse 422e3c98f8
🆙 ts-jest (#2497) 2018-06-14 16:29:36 -07:00
Andrew Stanton-Nurse f94f6b73ef
fix running Functional Tests in the browser (#2494) 2018-06-14 14:14:51 -07:00
BrennanConroy 296fcc9423
Add JS unit tests for SSE (#2484) 2018-06-14 13:44:36 -07:00
BrennanConroy 3345b6c308
Fix Cpp builds (#2465) 2018-06-13 14:33:59 -07:00
Andrew Stanton-Nurse c7af64332b
change to use Karma for Functional Tests (#2450) 2018-06-12 13:42:21 -07:00
BrennanConroy cb8264321d
Add VerifyLogger to JS tests (#2472) 2018-06-12 12:49:15 -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
BrennanConroy f309c303db
Add test coverage to TS Client tests (#2409) 2018-05-31 08:47:33 -07:00
James Newton-King 30a59f6df7
TypeScript strict mode (#2388) 2018-05-31 12:04:48 +12:00
BrennanConroy 508e66ece6
Submodule gtest (#2391) 2018-05-29 11:55:31 -07:00
Dylan Dmitri Gray f0f1df9b4a
PingInterval -> KeepAliveInterval (#2384) 2018-05-25 15:15:38 -07:00
Andrew Stanton-Nurse ad55661ceb update package.json versions, just for kicks 2018-05-23 19:20:20 -07:00
BrennanConroy 60d7ec5647 Add endpoint to samples for automated deployment usage 2018-05-23 13:59:32 -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
James Newton-King a699b61ffa
Increase TS HubConnection timeout in tests for slow build environments (#2328) 2018-05-22 09:24:33 +12:00
Andrew Stanton-Nurse b62d72542b
Add note about building TS library first (#2324) 2018-05-19 21:54:10 -07:00
Andrew Stanton-Nurse b493f01b35
Fix #2291 by documenting how to debug TS tests (#2306) 2018-05-17 17:09:45 -07: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
BrennanConroy f09b0e13d9
Upgrade to netcoreapp2.2 and remove netcoreapp2.0 testing (#2221) 2018-05-09 09:59:02 -07:00
Andrew Stanton-Nurse f163670bec
Merge pull request #2220 from aspnet/release/2.1
update README for npm packages (#2216)
2018-05-07 09:14:44 -07:00
Andrew Stanton-Nurse 1012b36bfb
update README for npm packages (#2216) 2018-05-07 09:14:24 -07:00
Andrew Stanton-Nurse b1fccab7b1
Merge pull request #2203 from aspnet/release/2.1
switch tests to 'jest' (#2193)
2018-05-04 12:57:19 -07:00
Andrew Stanton-Nurse e3e80b957c
switch tests to 'jest' (#2193) 2018-05-04 12:51:33 -07:00
Andrew Stanton-Nurse 9902835671 Merge branch 'release/2.1' into dev 2018-05-04 09:06:45 -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 028d0b233e
Merge pull request #2199 from aspnet/release/2.1
Release/2.1
2018-05-03 19:11:54 -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 5ec8094ade
Merge pull request #2192 from aspnet/release/2.1
fix #2171 by adding HttpTransportType.None (#2172)
2018-05-02 14:34:43 -07:00
Andrew Stanton-Nurse b1010b7bd5
fix #2171 by adding HttpTransportType.None (#2172) 2018-05-02 14:34:23 -07:00
Andrew Stanton-Nurse 2a236193da
Merge pull request #2184 from aspnet/release/2.1 2018-05-01 16:37:54 -07:00
Andrew Stanton-Nurse ae329edd2a
Fix #2169 by correcting shutdown timeout (#2170) 2018-05-01 16:37:22 -07:00
Andrew Stanton-Nurse 01d47ec78f
Merge pull request #2181 from aspnet/release/2.1
JSDocs (#2168)
2018-05-01 16:06:54 -07:00
Andrew Stanton-Nurse c89cf1a12b
JSDocs (#2168) 2018-05-01 16:06:35 -07:00
Andrew Stanton-Nurse 968e31970e
Merge pull request #2123 from aspnet/release/2.1
Final TS tidyup (#2120)
2018-04-20 16:34:19 -07:00
Andrew Stanton-Nurse 01c0690cc9
Final TS tidyup (#2120) 2018-04-20 16:33:45 -07:00
Andrew Stanton-Nurse 36f05d42f5
Merge pull request #2118 from aspnet/release/2.1
Release/2.1
2018-04-20 13:49:53 -07:00
Andrew Stanton-Nurse dacea904cc
privatize IConnection and HttpConnection (#2105) 2018-04-20 10:14:54 -07:00
Andrew Stanton-Nurse 29ddc6a3e5 Merge branch 'release/2.1' into dev 2018-04-19 12:11:28 -07:00
Andrew Stanton-Nurse 65adcdd73a
HubConnectionBuilder.ts (#2063) 2018-04-19 12:09:47 -07:00
Andrew Stanton-Nurse 050a1ecf27
fix package.json versions (#2098) 2018-04-19 10:12:09 -07:00
David Fowler 9a0c190f48
Merge pull request #2082 from aspnet/release/2.1
Added support for negotiate response to redirect the client to anothe…
2018-04-18 14:51:55 -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 92d8f854bc
Merge pull request #2077 from aspnet/release/2.1
Merge Release/2.1
2018-04-18 18:58:54 +00: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 b3b5a13f2c underp the merge 2018-04-18 09:13:13 -07:00
Andrew Stanton-Nurse 7dd6d82bba
remove verbose flag (#2067) 2018-04-17 21:07:53 -07: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
Andrew Stanton-Nurse 1fbb940b82
Remove MSG from SignalR (#2006) 2018-04-13 17:08:02 -07:00
Andrew Stanton-Nurse 499d39b364
rename MsgPack assembly only (#2005) 2018-04-13 12:01:45 -07:00
Andrew Stanton-Nurse 16c6a65bf2
polyfill UInt8Array.forEach for IE (#1981) 2018-04-12 21:15:39 -07:00
Andrew Stanton-Nurse 24328b8e88
fix #1281 by adding support for DELETE endpoint on server (#1925) 2018-04-12 12:39:08 -07:00
Andrew Stanton-Nurse c734b9910a
fix #1951 by transpiling to ES5 (#1970) 2018-04-12 11:59:43 -07:00
David Fowler 8b1a7e9199
API review feedback (#1974)
- Remove SetHttpContext
- Remove HttpContextFeature
- Add and implement IHttpTransportFeature on HttpConnectionContext
- Remove ConnectionMetadataNames
2018-04-12 03:50:14 -07:00
Andrew Stanton-Nurse ee6e8c15ce
increase jasmine timeout and add timestamps to logs (#1959) 2018-04-11 14:38:40 -07:00
Andrew Stanton-Nurse 71be5bf637
fix logging browser tests (#1940) 2018-04-10 16:45:17 -07:00
Andrew Stanton-Nurse 3136e5b05f
fix #1923 by avoiding extra build step (#1924) 2018-04-10 16:26:37 -07:00
David Fowler 5aafb9b8be
Remove ITransport dependency on IConnection (#1934) 2018-04-10 12:29:16 -07:00
Vegard Løkken 31dfe91962 Support async access token factory (#1911) 2018-04-10 05:34:10 -07:00
David Fowler f4313170f8
Split HandshakeProtocol into another class (#1921)
- Take a HandshakeRequest into the protocol type
2018-04-09 17:45:16 -07:00
BrennanConroy 6d050140e5
Swtich to MessagePack-CSharp (#1879) 2018-04-09 17:04:32 -07:00
David Fowler 86083c0302
Removing native support for IObservable<T> (#1890)
- There are too many issues and questions with respect to back pressure and the buffering policy we should use when the client being streamed to can't support the data being pushed via OnNext.
As a result, we're dropping support for IObservable but keeping ChannelReader and we'll eventually support IAsyncEnumerable when that makes it into the BCL.
- Add sample showing Observable -> ChannelReader adaption
2018-04-07 15:10:39 -07:00
Mikael Mengistu e51852d0fc
Use Anchor tag to normalize urls(#1828) 2018-04-04 21:43:25 -07:00
Andrew Stanton-Nurse fccc9d1b50
fix #1815 by disposing linked cts (#1849) 2018-04-04 21:12:21 -07:00
Andrew Stanton-Nurse 313772ef03
fix #1727 by adding polyfills for IE (#1841) 2018-04-04 10:20:38 -07:00
James Newton-King e7b84b753b
Refactor HubConnectionBuilder (#1830) 2018-04-04 21:19:13 +12:00
Andrew Stanton-Nurse 99ae47be09
Add ability to log message content (#1792) 2018-04-03 18:46:25 -07:00
Mikael Mengistu ba0131a731
Rename TransportTypes to HttpTransportTypes (#1839) 2018-04-03 16:00:20 -07:00
David Fowler 5e38303377
Use xhr.onreadystatechange instead of xhr.onload (#1838) 2018-04-03 15:53:16 -07:00
BrennanConroy 221c95e0af Couple logging additions (#1827)
- Added logging in a couple more places in HubConnection
- Increase DEFAULT_TIMEOUT_INTERVAL to 20 seconds
2018-04-02 19:25:47 -07:00
BrennanConroy 6640f14e35
Detailed errors enabled for functional tests (#1822) 2018-04-02 10:42:26 -07:00
David Fowler 0293e53e11
Handle uninitialized connections in disposal (#1786) (#1794)
- We made a change to not initialize pipes up front
on connection creation. That change make it null ref in disposal because we didn't check if the pipes were initialized.
- Added a test
- Also fixed the EchoConnectionHandler in the functional ts tests.
2018-03-30 15:51:48 -07:00
Andrew Stanton-Nurse a92b3a7288 Merge branch 'release/2.1' into dev 2018-03-30 15:26:44 -07:00
Andrew Stanton-Nurse 6b3a27e73c
Bedrock Renames (#1777) 2018-03-30 15:09:19 -07:00
BrennanConroy 12b5e173b3
Merge pull request #1790 from aspnet/release/2.1
Cleanup logs during test (#1787)
2018-03-30 13:34:34 -07:00
BrennanConroy c0418319fe
Cleanup logs during test (#1787) 2018-03-30 13:33:59 -07:00
BrennanConroy ec66d236ac
Merge pull request #1785 from aspnet/release/2.1
Add detailed error option (#1763)
2018-03-30 11:30:44 -07:00
BrennanConroy 44b667b3e6
Add detailed error option (#1763) 2018-03-30 11:30:07 -07:00
James Newton-King 389817c682
Merge pull request #1776 from aspnet/release/2.1
Client logging fixes and improvements (#1773)
2018-03-30 16:25:13 +13:00
James Newton-King 51fb15d6cf
Client logging fixes and improvements (#1773) 2018-03-30 16:24:38 +13:00
BrennanConroy ba1d4b771c
Merge pull request #1771 from aspnet/release/2.1
Move Cpp Client to main repo (#1703)
2018-03-29 14:59:20 -07:00
BrennanConroy 476d337989
Move Cpp Client to main repo (#1703) 2018-03-29 14:58:54 -07:00
Andrew Stanton-Nurse 0285549aaa
Merge pull request #1769 from aspnet/release/2.1
collect log messages during browser tests (#1670)
2018-03-29 10:11:35 -07:00
Andrew Stanton-Nurse a4d0bf2e3a
collect log messages during browser tests (#1670) 2018-03-29 10:11:18 -07:00
David Fowler 4c6c0aa8a4 Merge branch 'release/2.1' into dev 2018-03-27 23:12:00 -07:00
Andrew Stanton-Nurse cfaa123eb8 IConnection refactoring (#1718)
- IConnection is now single-use and HubConnection creates a new instance
for reconnecting
- IConnection is just a Pipe now, no more events
2018-03-27 23:02:07 -07:00
Mikael Mengistu 1fdd6511fa
Merge pull request #1738 from aspnet/release/2.1 2018-03-27 14:08:55 -07:00
Mikael Mengistu 3952eacfaa
Add ability to remove all handlers with just the method name (#1729) 2018-03-27 14:06:56 -07:00
unknown 678265259d Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-26 17:30:38 -07:00
Mikael Mengistu cc52beec17
Fallback for TS client 2018-03-27 00:18:36 +00:00
David Fowler 290f18ac76 Merged release/2.1 2018-03-23 00:06:32 -07:00
David Fowler 2e63e5afe3
The rename games part 1 of many (#1696)
- React to rename of EndPoint to ConnectionHandler
- Rename UseSockets to UseConnections
- Rename MapEndPoint to MapConnectionHandler
- Rename HttpSocketOptions to HttpConnectionOptions
2018-03-22 22:35:55 -07:00
James Newton-King 7479f92303
Merge branch 'release/2.1' into dev 2018-03-23 17:28:25 +13:00
James Newton-King d367bdc9aa
Remove message content from JS client logging (#1694) 2018-03-23 17:24:51 +13:00
BrennanConroy fd54ec2c4f Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-22 15:57:47 -07:00
BrennanConroy a47e1051e8
Add protocol version to handshake (#1666) 2018-03-22 15:54:35 -07:00
BrennanConroy 6d642ea5ce
Move Typescript client folder (#1692) 2018-03-22 15:47:08 -07:00