Commit Graph

729 Commits

Author SHA1 Message Date
Pawel Kadluczka 7c90e80b3f Merge branch 'rel/1.0.0-alpha2' into dev 2017-10-02 10:07:16 -07:00
Pawel Kadluczka 70df19c8a2 Fixing MsgPack serializing byte[] as string Part 1
Enabling sending byte[] from server to client.
2017-09-29 17:05:24 -07:00
Pawel Kadluczka 05da66ada0 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-28 17:52:25 -07:00
Pawel Kadluczka 602ca479b8 Checking if window.document defined before trying to resolve url 2017-09-28 17:01:34 -07:00
Pawel Kadluczka 4f4fb174ea Replacing 8-byte-long length prefix with varint 2017-09-28 17:00:49 -07:00
David Fowler 2adf24d1c6 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-25 23:44:25 -07:00
David Fowler e17cdae046 Added overloads from 0-n arguments (#949)
- Added 0 arg overload for InvokeAsync
2017-09-25 23:42:05 -07:00
David Fowler 9df8d2f795 Remove the params argument from IClientProxy (#946)
* Remove the params argument from IClientProxy
- This allows passing arrays without having to explicitly ToArray() or AsEnumerable()
- Added overloads up to 10 arguments
- Added tests
2017-09-25 21:01:52 -07:00
David Fowler 000f9cb192 Initial support for websocket subprotocols (#933)
* Initial support for websocket subprotocols
- Exposes a SubProtocol property on WebSocketOptions that picks the
protocol for all connections on the end point.
- This is required for things like mqtt over websockets (the SubProtocol in
this case is something like mqtt or mqttv3.1)
- Added test

#402
2017-09-25 15:17:45 -07:00
David Fowler 5497c7d4ce Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-25 08:31:02 -07:00
David Fowler 26255cc29c Check for null before sending to a specific connection id (#935)
* Check for null before sending to a specific connection id
- Added some tests for the DefaultHubLifetimeManager

#905
2017-09-25 08:26:24 -07:00
moozzyk c0713c9916 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-25 08:17:27 -07:00
Pawel Kadluczka 0267695656 Exceptions thrown during writing should close the connection
We need to close the connection if there is an exception when writing to the transport on the server side. Currently if an exception happens it leaves the connection in an unsable state - after the exception no messages from the server will be sent to the client because the writing loop is terminated. Ignoring the message could cause hangs on the client side since we can fail while writing a completion message. In this case if the client is awaiting the invocation it will hang because the task will never be completed.
2017-09-25 08:13:46 -07:00
David Fowler 65cd41dbf5 Block POST requests for websocket connections (#934) 2017-09-23 17:49:19 -07:00
Pawel Kadluczka 1686878035 Adding JS tests that send and receive structural objects 2017-09-22 17:13:21 -07:00
Pawel Kadluczka 8743723ece Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-21 23:00:20 -07:00
Pawel Kadluczka 4db78685dc camelCasing objects serialized by JsonHubProtocol
Fixes: #859
2017-09-21 22:58:59 -07:00
Pawel Kadluczka 6ed3f6d1aa Enabling hub connection with customized hub protocols 2017-09-21 22:57:07 -07:00
Justin Kotalik bb603df166 Increase Minimum Version of Visual Studio to 15.3.0 2017-09-21 18:00:40 -07:00
Andrew Stanton-Nurse 786980bc3f add names to EventIds used by logger extensions (#927) 2017-09-21 17:36:50 -07:00
Pawel Kadluczka 126901a08f Adding default ctors for HubProtocols 2017-09-21 15:30:23 -07:00
Pawel Kadluczka ba25dee141 Enabling customizing serialization settings in MessagePack protocol 2017-09-21 15:30:23 -07:00
moozzyk 9ecb6d1d58 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-21 08:31:53 -07:00
Tim Seaward bcda95353e Remove extra span (#922) 2017-09-21 03:30:05 -07:00
Tim Seaward f71e31a1cd Fix the double buffer rent/free (#921)
* Fix the double buffer rent/free

* Fix the double cast to span
2017-09-20 23:30:59 -07:00
Pawel Kadluczka 20d4d70cc7 lowercasing event names 2017-09-20 18:19:02 -07:00
Pawel Kadluczka 5ca089e33e Enabling multiple callbacks for HubConnection.onClose
Fixes: #842
2017-09-20 17:09:02 -07:00
Pawel Kadluczka dd07ab1735 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-20 15:31:56 -07:00
BrennanConroy 4e9a7be7dd SignalR Core Logging (#889) 2017-09-20 15:13:26 -07:00
FTWinston a7fb243501 Added typed HubContext 2017-09-19 16:16:31 -07:00
Pawel Kadluczka ac36121f26 Update README
Adding information about requirements for building the repo. Fixes: https://github.com/aspnet/SignalR/issues/906
2017-09-19 15:13:18 -07:00
Pawel Kadluczka 80bf695181 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-19 11:37:03 -07:00
Pawel Kadluczka bee9fcb0d8 Adding support for multiple callbacks per client side method
...and a possibility to remove callbacks

Fixes: #807
2017-09-19 11:13:22 -07:00
David Fowler 24455da8fb Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 20:46:14 -07:00
Pawel Kadluczka 8c9016cfbd Removing AspNetCoreVersion for a package reference 2017-09-18 17:26:02 -07:00
David Fowler 48d97bf271 Turned Stream into StreamAsync (#902)
* Turned Stream into StreamAsync
- Before we were fire and forgetting the invocation that initiated
the streaming, this changes that so that the caller now has to await
to get the channel.

#899
2017-09-18 16:44:18 -07:00
David Fowler 2efbd6a95a Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 14:14:23 -07:00
David Fowler a93e4be82f Added Cancellation support (#897)
* Added Cancellation support
- Added ConnectionAbortedToken to the HubConnectionContext. This allows
arbitrary code to access a handle that represents the connection lifetime
without handling OnDisconnectedAsync on the hub itself.
- Expose Abort on HubConnectionContext to allow server side methods to
abort the connection.
- Use the Abort to stop the main loop when unexpected invocation errors happen.
- Use the connection aborted token as unsubscribe from the IObservable and to complete
the IAsyncEnumerator for streaming results.
2017-09-18 12:47:38 -07:00
Pawel Kadluczka ad54c08519 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 10:48:53 -07:00
Pawel Kadluczka 20b07a0dff Adding README to npm module 2017-09-18 10:08:52 -07:00
Pawel Kadluczka c6c08e142e Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-18 10:03:35 -07:00
Pawel Kadluczka 982ac32fea Prepending relative urls with '/' 2017-09-15 15:12:36 -07:00
Mikael Mengistu e42f6980b6 Add Hub<T> Functional Tests (#891) 2017-09-15 13:59:44 -07:00
Pawel Kadluczka 4841444d60 Packages produced from dev branch should be alpha2 now 2017-09-15 13:44:33 -07:00
Pawel Kadluczka 393c1e420e Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-15 12:12:40 -07:00
Pawel Kadluczka b40578b89b Moving versions to alpha2 2017-09-15 12:11:53 -07:00
BrennanConroy 0159d45f54 Merge branch 'rel/1.0.0-alpha2' into dev 2017-09-15 11:05:04 -07:00
BrennanConroy 9a67ac5341 Make sure socket closed is logged 2017-09-15 11:03:51 -07:00
Pawel Kadluczka 2919c26dd4 Update README.md 2017-09-15 08:16:35 -07:00
Andrew Stanton-Nurse 7bc3db1b29 Fix some markdown glitches. (#879) 2017-09-14 14:50:17 -07:00