Commit Graph

481 Commits

Author SHA1 Message Date
Mikael Mengistu bdea0f07ef Fix SocketSample group send (#539) 2017-06-08 17:07:30 -07:00
Mikael Mengistu 27979d835f Clean up GroupManager (#542) 2017-06-08 17:06:41 -07:00
Nate McMaster 05dd8c7386 Add the npm 5 lockfile to source 2017-06-08 09:47:17 -07:00
David Fowler 523517f60c Add support for timing out poll requests (#538)
* Add support for timing out poll requests
- Default poll request is 110 seconds (like in previous versions of SignalR)
- Use 200 with a 0 content length for timeouts.
- Added support for not timing out while debugging
2017-06-07 20:55:00 -10:00
BrennanConroy d1df3671d8 Add Auth Test that was accidentally deleted (#541) 2017-06-07 14:29:59 -07:00
Pavel Krymets c845b07b56 Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-06-07 14:29:28 -07:00
Pavel Krymets a9ca4aeeb2 React to logging changes 2017-06-07 14:27:30 -07:00
David Fowler 50f1d8f9fe Added IHubProtocol to ts client (#537)
- Mimics the .NET client structure wise
- Also adds a JsonHubProtocol implementation
2017-06-07 05:46:27 -10:00
David Fowler 0bbe42a912 Unbreak the chat sample 2017-06-07 01:02:53 -07:00
BrennanConroy 1fad901843 Fix inherited hub auth and added tests (#535) 2017-06-06 20:55:34 -10:00
Mikael Mengistu 680c48d584 Change Group Add and Remove API (#522) 2017-06-06 21:50:34 -04:00
Pawel Kadluczka 1ae4d3e042 Fixing typos (#519) 2017-06-06 16:55:10 -07:00
Pawel Kadluczka a14a0ab039 Adding structured negotiate 2017-06-06 15:53:21 -07:00
BrennanConroy 4c4be7ed6f Add support for Hub Authorize Attribute (#532) 2017-06-06 15:46:08 -07:00
Nate McMaster fd7abb31e8 Lift M.ANC.Sockets.Common to .NET Standard 2.0 2017-06-06 15:28:27 -07:00
Pawel Kadluczka 028bd68bf5 Removing unneeded queryString from TS client 2017-06-06 14:02:01 -07:00
Ryan Brandenburg 9d584a6358 Skip flaky test 2017-06-06 19:33:46 +00:00
David Fowler d8583535c8 Remove unused code 2017-06-06 10:58:29 -07:00
David Fowler 5f6736a82f Removed unused parameter 2017-06-06 10:29:56 -07:00
David Fowler 59a8f5f3b5 Simplify the JSON and protobuf protocols (#524)
- Remove message type and message format
- Updated tests
2017-06-06 07:18:23 -10:00
David Fowler 38efde7b50 Merge transport and hub protocols (#517)
* Merge transport and hub protocols
- This change merges the transport and hub protocols into a single protocol. The
idea being that sockets in a purely streaming layer that sends frames from the underlying
transport. This makes things like TCP possible and doesn't impose a framing layer at the lowest
level. This will make it possible to build servers like kestrel on top of the TCP layer.
- The Message was removed from the lowest layer of the stack and pushed into the hubs layer. Hub invocations
are framed with what was before the transport protocol. Connections also need to state upfront if they support
binary or not. This will determine how data will be serialized to the specific connection.
- Changed the SSE parser and writer to be strictly SSE without any of the transport protocol specific
information.
- To ensure we aren't using types in the wrong layers
- Moved protocol logic into SignalR
- Socket.Abstractions is now the root of the universe, Sockets.Common will likely be removed
or turned into Sockets.Common.Http.
- Move SSE parser to Sockets.Client and SSE writer into Sockets.Http
- Moved tests into the appropriate test projects
- Updated the spec
2017-06-05 09:45:40 -10:00
David Fowler 831fa72893 Remove the RequestId from DefaultConnectionContext (#516)
* Remove the RequestId from DefaultConnectionContext
- Added a GetHttpContext() extension method on ConnectionContext
- Also fixed an issue not setting LastSeenUtc
2017-06-03 22:05:44 -10:00
Kiran Challa 7de91da37d Merge branch 'rel/2.0.0-preview2' into dev 2017-06-03 19:28:28 -07:00
David Fowler b77f50a99a Merge DefaultConnectionContext with ConnectionState (#514)
* Merge DefaultConnectionContext with ConnectionState
- Removed ConnectionState as a result
2017-06-03 12:14:01 -10:00
David Fowler cad9f2f671 Use RX in streaming sample 2017-06-03 11:45:36 -07:00
David Fowler 42e2715a95 Removed EndOfMessage from Message (#513)
* Removed EndOfMessage from Message
- The webSockets transport no longer supports partial payloads so
this feature is now gone.
2017-06-03 08:32:28 -10:00
David Fowler eee2683b5e Removed pip install 2017-06-03 09:57:11 -07:00
David Fowler 72423ee203 Removed custom websocket implementation (#507)
- Use the default websocket middleware
- Rewrote TestWebSocketConnectionFeature to use Channels instead of pipes
2017-06-03 06:53:39 -10:00
BrennanConroy 52f2104c78 React to Base64 API changes 2017-06-02 20:40:06 -07:00
Pavel Krymets db9712c3f2 Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-06-02 15:04:33 -07:00
Pavel Krymets 12fb3de3a6 React to AddConfiguration argument change 2017-06-02 15:03:55 -07:00
Pavel Krymets 6b32478ec1 Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-06-02 14:00:34 -07:00
Pavel Krymets ce280cba00 React to Logging in DI changes 2017-06-02 13:57:49 -07:00
Kiran Challa 49e0829903 Removed unnecessary references 2017-06-01 15:27:19 -07:00
BrennanConroy 2936c88d54 Remove unnecessary build step and reference (#504) 2017-06-01 15:21:21 -07:00
David Fowler d10a6293bd Discover hub methods at startup time (#503)
* Discover hub methods at startup time
- Errors will show up earlier as a result instead of cryptic
first connect errors.
2017-06-01 09:47:39 -10:00
Kiran Challa 6d9f56bf4e Removed unnecessary references 2017-06-01 12:06:45 -07:00
Pranav K 5fa3acfd95 Updating versions to preview3 2017-06-01 10:47:52 -07:00
Pranav K 091158fbb0 Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-05-31 20:03:56 -07:00
Pranav K f7aa70d55f Updating build scripts to point to 2.0.0-preview2 KoreBuild 2017-05-31 19:53:35 -07:00
Pranav K 7f8c314374 Merge remote-tracking branch 'origin/rel/2.0.0-preview2' into dev 2017-05-31 19:47:31 -07:00
Pranav K d9e2f45d7f Branching for rel/2.0.0-preview2 2017-05-31 19:37:28 -07:00
Pawel Kadluczka e31fc1e57d Closing transports with error if hubs cannot be created
- Preventing from closing long polling transport with 204 in case of
error
- Reporting an error to the client if WebSocket was not closed normally

Note in case of ServerSentEvents it is not possible on the client to
tell the difference between when the server closed event stream due to
an exception or because the client left OnConnectedAsync. In both cases
the client sees only that the stream was closed.

Part of: #163
2017-05-31 16:29:28 -07:00
Andrew Stanton-Nurse 263dd0e4fe Fix #324 by adding streaming support to the server (#461) 2017-05-31 09:10:20 -07:00
Kiran Challa 39fd6974f7 Updated to use the latest shared runtime 2017-05-29 04:42:13 -07:00
BrennanConroy 762d52133c Change Base64 to Base64Encoder (#492) 2017-05-26 17:48:36 -07:00
Mikael Mengistu b862d35b10 Update Targets (#486) 2017-05-26 20:00:12 -04:00
John Luo 47ac4e5bf9 React to Hosting changes 2017-05-26 10:53:10 -07:00
Pawel Kadluczka cb9f44ddf6 Fixing WebSocketsTransport to handle exceptions correctly
Exceptions thrown when sending or receiving messages would leave the
WebSockets transport in a half-closed state when one of the loops is
closed but the other one is still running preventing from the
Connection.Closed event to be fired.

Fixes: #412
2017-05-26 07:58:44 -07:00
Hao Kung fbf7e1fb72 Add auth reference 2017-05-25 21:56:28 -07:00