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
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
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
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
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
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
FTWinston
a7fb243501
Added typed HubContext
2017-09-19 16:16:31 -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
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
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
20b07a0dff
Adding README to npm module
2017-09-18 10:08:52 -07:00
Pawel Kadluczka
982ac32fea
Prepending relative urls with '/'
2017-09-15 15:12:36 -07:00
Pawel Kadluczka
b40578b89b
Moving versions to alpha2
2017-09-15 12:11:53 -07:00
BrennanConroy
9a67ac5341
Make sure socket closed is logged
2017-09-15 11:03:51 -07:00
Pawel Kadluczka
a267e86e1f
Adding the 'final' suffix to version
2017-09-14 09:49:06 -07:00
Pawel Kadluczka
ff9937e247
Dropping build number from package names
2017-09-13 17:53:34 -07:00
Pawel Kadluczka
d226b20756
Rename With/GetTransportType to With/GetTransport
2017-09-13 09:46:17 -07:00
David Fowler
2e695c935e
Made tweaks to .NET client logging API ( #869 )
...
- Removed ConnectionFactoryDelegate and used Func<IConnection>
- Changed WithLogger that accepts ILoggerFactory to WithLoggerFactory
- Made UseLogger configure the existing ILoggerFactory or create a LoggerFactory
- Add support for setting the log level for console logs
- Updated tests
2017-09-13 09:18:06 -07:00
Pawel Kadluczka
72568acff0
Appending version to browser javascript file names
2017-09-13 09:17:13 -07:00
Pawel Kadluczka
dbe4b4025b
Merge branch 'pawelka/msgpack-fixes' into rel/1.0.0-alpha1
2017-09-13 09:14:16 -07:00
Pawel Kadluczka
1453f419a8
MessagePack Serialization fixes
...
* serializing user objects as maps (#863 )
* enabling serializing objects that potentially cannot be deserialized (#862 )
2017-09-13 08:50:04 -07:00
BrennanConroy
2d4b2239a9
Reduce C# client logging and add HubProtocol log ( #857 )
2017-09-12 13:45:11 -07:00
Pawel Kadluczka
35683fb2b8
Fixing a bug where adding protocol with build would have no effect
2017-09-12 13:06:38 -07:00
Pawel Kadluczka
abd669849d
Making MsgPack work in IE10
2017-09-11 21:14:15 -07:00
Pawel Kadluczka
54c71c4c10
Replacing Cache-Control header with nonce
...
Makes long polling work on IE10 and IE9
2017-09-11 21:12:18 -07:00
Pawel Kadluczka
67b2b27ac9
Enabling passing relative Url when creating connections
2017-09-11 21:07:47 -07:00
Pawel Kadluczka
bb79a9760c
Enabling creating HubConnection without HttpConnection
2017-09-11 21:07:47 -07:00
BrennanConroy
393ab6a4f0
Add extension method to get HttpContext on HubConnectionContext ( #849 )
2017-09-11 16:55:32 -07:00
Pawel Kadluczka
62bbe943e8
Make sure long polling transport can survive http client timeout
2017-09-07 14:14:52 -07:00
Pawel Kadluczka
4ac8e786cf
Adding HubConnectionBuilder
2017-09-07 10:04:42 -07:00
Pawel Kadluczka
9e614b6cc7
Initializing HubOptions.JsonSerializationSettings to default settings
2017-09-07 09:51:20 -07:00
Pawel Kadluczka
b4c61b6c2d
Client side method names should be case insensitive
2017-09-07 09:50:13 -07:00
Pawel Kadluczka
2cc72d72cd
Logging traffic at Trace level
2017-09-06 11:56:38 -07:00
Pawel Kadluczka
ceff4bd7da
Exceptions from user's event handlers should be caught and logged
...
Otherwise they can spoil event queue and make the client not raise the Received event anymore
Fixes : #818
2017-09-05 12:21:47 -07:00
Mikael Mengistu
92775235f6
Branching for Alpha
2017-08-31 17:15:41 -07:00
Mikael Mengistu
cd10d7e122
Fixing csproj
2017-08-31 16:22:36 -07:00
Pawel Kadluczka
29ad3d1dd6
Adding third-party-notices.txt for msgpack5
2017-08-31 15:34:11 -07:00
BrennanConroy
ec18f7a1cb
Close the ClientSample app when connection closed ( #805 )
2017-08-31 15:31:10 -07:00
BrennanConroy
7418785a5e
Fix WebSocket race in E2E test ( #809 )
2017-08-31 15:30:55 -07:00
Mikael Mengistu
8ec2848646
AllExcept for Dynamic and Typed Hubs ( #796 )
2017-08-31 15:30:19 -07:00
Pawel Kadluczka
f31e5ad42a
Updating signalr-client module version
2017-08-31 14:01:25 -07:00
Nate McMaster
5b767e05b4
Lift local function to class function to workaround issue in xunit.analyzers and roslyn
2017-08-31 13:42:44 -07:00
Mikael Mengistu
7dcbf25069
Headers for TS files ( #798 )
2017-08-31 11:33:14 -07:00
Pawel Kadluczka
5dceaa8149
Adding Microsoft.AspNetCore.SignalR.Client
2017-08-31 10:10:02 -07:00
Pawel Kadluczka
36acebf9fb
Renaming Microsoft.AspNetCore.SignalR.Client to Microsoft.AspNetCore.SignalR.Client.Core
2017-08-31 10:10:02 -07:00
Pawel Kadluczka
521eed1438
Renaming Microsoft.AspNetCore.SignalR.Http to Microsoft.AspNetCore.SignalR
2017-08-31 10:10:02 -07:00
Pawel Kadluczka
fa1f7f0b13
Renaming Microsoft.AspNetCore.SignalR to Microsoft.AspNetCore.SignalR.Core
2017-08-31 10:10:02 -07:00