Commit Graph

430 Commits

Author SHA1 Message Date
Hao Kung 3f36fa5986 Fix sample 2017-05-24 12:56:54 -07:00
Brice Lambson 4e7110e442 React to EF API changes 2017-05-24 12:14:56 -07:00
BrennanConroy 2edc77cd9b React to EF API changes 2017-05-24 11:23:02 -07:00
BrennanConroy a322fea940 Add data received logs to SSE and LongPolling in TS client (#484) 2017-05-24 08:49:59 -07:00
David Fowler d55ebfeee0 Split http and non-http layers (#487)
* Split http and non-http layers
- This change introduces Microsoft.AspNetCore.SignalR.Http
and Microsoft.AspNetCore.Sockets.Http which expose extension methods
on IAppBuilder for wiring up a sockets and signalr pipeline.
2017-05-24 07:09:46 -07:00
Hao Kung a31c693178 React to identity 2017-05-23 14:11:26 -07:00
David Fowler 9d9a52119e Progress towards splitting the layers (#473)
* Progress towards splitting the layers
- This is based on the work anurse did in anurse/endpoint-middleware-spike to
introduce a connection middleware pipeline that mimics much of our http
pipeline. The intent is that this layer will be generic enough to build both
SignalR and Kestrel on top of but we're not there yet. This change makes incremental
progress towards splitting apart sockets and http so that we can add the tcp transport
without breaking everything all at once.
- Created Microsoft.AspNetCore.Sockets.Abstractions where the primitives for
sockets live. That includes, ConnectionContext (formerly Connection), EndPoint,
ISocketBuilder, SocketDelegate, etc.
- ConnectionContext isn't in it's final form as yet, it still very closely mirrors
the original Connection object we had so that tests continue to pass.
- The HttpConnectionDispatcher doesn't know about EndPoint anymore, it just cares
about invoking the SocketDelegate.
- EndPointOptions has been removed as part of this change as it coupled http specific configuration
to the end point type. There's a new HttpSocketOptions that needs to be passed into MapSocket calls.
- Updated the tests to deal with the API changes.
2017-05-23 02:43:32 -07:00
David Fowler e68a1b294f Fix long polling graceful shutdown (#476)
- If a message was sent and the application was ended in the same
poll request, the connection would be closed by the time the next poll
came in which resulted in a 404. This change waits until the transport writes
all data before closing it.
- Also fixed a test so that the exception started to show client side.

#469
2017-05-22 09:07:26 -07:00
David Fowler 323dae4ce9 Handle case where scanning happens after dispose. (#475)
- ConnectionManager.Scan would null ref because the timer.Change was being called
after closing all connections.
2017-05-21 23:19:17 -07:00
David Fowler 87c4da41e8 Disabling hosting startup
- VS injects a bad version of AppInsights because it doesn't
check the shared framework version in use. Since we constantly
are on the bleeding edge, we get out of sync frequently. This
change disables them from running.
2017-05-21 16:46:47 -07:00
David Fowler 2aabce48b4 Remove custom routing and path matching from HttpConnectionDispatcher (#471)
- We're now using the routing system in a very vanilla way now that
we're not using the URL space as part of the protocol.
- Removed the path argument from the HttpConnectionDispatcher (simplifies code and removes duplication from tests)
2017-05-20 00:34:29 -07:00
David Fowler 240a88f7af Make the http end points more resty (#470)
- Use HTTP verbs to describe functionality for endpoints
- Updated TransportProtocols.md
2017-05-19 23:37:17 -07:00
Andrew Stanton-Nurse 8f18ff4423 react to corefxlabs changes (#464) (#465) 2017-05-19 15:06:46 -07:00
Pawel Kadluczka 4bb9721d39 Adding strongly typed Invoke and On overloads
See: #311
2017-05-19 09:47:16 -07:00
Andrew Stanton-Nurse 8d5ce5f38b small typo fixes in Hub Protocol spec 2017-05-16 11:01:52 -07:00
Pawel Kadluczka 8b455ecae7 Fixing `dotnet ef database update`
Currently it is impossible to create database for the chat sample - `dotnet ef` commands fail with: "No parameterless constructor was found on 'ApplicationDbContext'. Either add a parameterless constructor to 'Application
DbContext' or add an implementation of 'IDbContextFactory<ApplicationDbContext>' in the same assembly as 'ApplicationDbC
ontext'." - adding IDbContextFactory implementation to fix this

Also disabling Redis presence in favor of in-memory presence
2017-05-15 14:57:07 -07:00
Nate McMaster ef7a3514cd Upgrade test framework versions and fix test issues (#453) 2017-05-15 12:50:30 -07:00
Mikael Mengistu 04863032a2 Increase the size of the WebSockets buffer to 4K. (#448) 2017-05-15 13:14:45 -04:00
Pawel Kadluczka 06e3a08ac0 Multi-server 2017-05-11 22:42:14 -07:00
Pawel Kadluczka 7300413d0c Storing user lists per server 2017-05-11 22:42:14 -07:00
Pawel Kadluczka 5d32407f24 More structural way of storing users 2017-05-11 22:42:14 -07:00
Andrew Stanton-Nurse 11f23f7ce2 disable npm optional dependencies (#447)
'microtime' doesn't build properly on our CI agents
2017-05-11 10:37:35 -07:00
Pavel Krymets 67ecd4746e Remove unnecessary package references (#446) 2017-05-10 15:14:26 -07:00
Andrew Stanton-Nurse 991c1d8517 Implement new Hub Protocol (Part Deux) (#390)
* convert to new protocol
* removed InvocationDescriptorRegistry because we're not yet sure about custom protocols
* update SocialWeather sample
* Moving ts client to using new protocol
* make the functional tests a little easier to run on ctrl-f5
2017-05-09 12:24:58 -07:00
Mike Harder 6cf6feed64 Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-08 13:07:13 -07:00
Mike Harder a33e0cef24 Upgrade StackExchange.Redis.StrongName to version 1.2.3 (#442)
- Addresses package downgrade warnings (https://github.com/aspnet/SignalR/issues/428)
2017-05-08 13:05:08 -07:00
Pawel Kadluczka d73b490b69 Fixing SocialWeather sample 2017-05-08 12:49:57 -07:00
BrennanConroy 1da4e07fff Use common ObjectMethodExecutor (#440) 2017-05-07 10:05:21 -07:00
Pawel Kadluczka 9d07eeef91 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 17:11:55 -07:00
Pawel Kadluczka c053b8cd9d Fixing Win7 tests 2017-05-05 17:10:23 -07:00
Pavel Krymets ee2e9b0ca4 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-05 10:27:43 -07:00
Pavel Krymets e9241215e4 Update InternalAspNetCoreSdkVersion 2017-05-05 10:27:33 -07:00
Andrew Stanton-Nurse ca9a44afc3 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-04 14:11:16 -07:00
Mikael Mengistu 7f64811ccd Change targets (#437)
Target netcoreapp2.0
2017-05-04 14:05:58 -07:00
BrennanConroy e96096e760 Merge branch 'rel/2.0.0-preview1' into dev 2017-05-03 10:39:46 -07:00
BrennanConroy 0a3c7001d4 React to Logging API changes (#433) 2017-05-03 10:39:29 -07:00
Pranav K 831386093f Merge remote-tracking branch 'origin/rel/2.0.0-preview1' into dev 2017-05-01 22:02:48 -07:00
Pawel Kadluczka cf2d6ce697 Redis presence manager 2017-05-01 16:35:27 -07:00
Pawel Kadluczka 7713124bd8 Making PresenceHubLifetimeManager a wrapper 2017-05-01 16:35:27 -07:00
Pawel Kadluczka 7f3baf5ce6 Splitting PresenceManager 2017-05-01 16:35:26 -07:00
moozzyk 19b390c5ab Redis based scaleout presence 2017-05-01 16:35:26 -07:00
Pawel Kadluczka 632c8abf77 Single server presence 2017-05-01 16:35:25 -07:00
Viktor Kotsiuban 963fcd41ed Add functionality to track online users 2017-05-01 16:35:25 -07:00
Pranav K 87fcdc4b0e Use the bundled NETStandard.Library package in netstandard targeting libraries 2017-05-01 12:40:18 -07:00
David Fowler ba99a89ee6 Fixed typo in the spec (#431) 2017-05-01 09:13:47 -07:00
Mikael Mengistu 186c411f43 Clean up (#427) 2017-04-28 14:37:09 -07:00
Mikael Mengistu db868af8d8 Added stricter SSE message type parsing (#410) 2017-04-28 11:58:10 -07:00
Nate McMaster 15afda7abf Revert "Temporarily disable DotNetCliToolReference in samples until aspnet/Universe#506 is resolved"
This reverts commit ee66a1706f.
2017-04-28 11:52:11 -07:00
Mikael Mengistu d19ed0070c Move Long Polling and SSE send logic to a common place (#424) 2017-04-27 15:33:23 -07:00
moozzyk 82f99a1424 Work around for a Firefox bug
Firefox won't fire EventSource open event until it receives some data. The workaround is to send an empty comment when starting ServerSentEvent transport.

Fixes: #352
2017-04-27 10:34:47 -07:00