Commit Graph

1749 Commits

Author SHA1 Message Date
moozzyk 8b905907fe Typed formatters 2016-10-25 16:37:22 -07:00
moozzyk f64c986b5d Adding support to non-Json hub invocation 2016-10-25 16:37:21 -07:00
David Fowler 79c1781ae3 Merge pull request #8 from anurse/anurse/websockets
move prototype WebSockets-over-Channels code in
2016-10-17 16:21:07 -07:00
Andrew Stanton-Nurse affcb935d7 clean-up and renaming
renamed WebSockets project to clarify it's internalityness
2016-10-17 15:27:23 -07:00
BrennanConroy 1bb9a61d7a README, LICENSE, and CONTRIBUTING files 2016-10-17 10:19:50 -07:00
Andrew Stanton-Nurse d2dbd473a0 @davidfowl love dat Func<...,object,...>,object pattern 2016-10-14 15:09:06 -07:00
Andrew Stanton-Nurse a1c0970222 move prototype WebSockets-over-Channels code in
nothing is wired up to anything in Sockets yet, it's just a copy of the
code
2016-10-14 14:36:18 -07:00
David Fowler 8bd8887213 Don't call CompleteReader, the dispatcher can handle that 2016-10-09 15:07:30 -07:00
David Fowler cf68c18dd2 Do async reads 2016-10-09 02:34:42 -07:00
David Fowler 08bba972c1 React to channel API changes 2016-10-07 16:18:23 -07:00
David Fowler eef2f14c78 Flush even before we get end of message 2016-10-07 01:06:04 -07:00
moozzyk bbecb0c0dc Fixing SSE transport
Content-Encoding: identity disables all the transformations and therefore fixes the issue where IIS is buffering SSE data
2016-10-06 14:20:54 -07:00
DamianEdwards d0196914ff JS code style fixes 2016-10-05 14:50:50 -07:00
DamianEdwards c641a43f38 Fixing @davidfowl's shitty web code. 2016-10-05 10:27:48 -07:00
David Fowler 3f5e340b9f Committed launch settings 2016-10-04 17:28:21 -07:00
David Fowler 3032909f3c Added tests 2016-10-04 01:32:30 -07:00
David Fowler e5e8d1bee3 Decouple the dispatcher from routing for easier testing 2016-10-04 00:12:07 -07:00
David Fowler 411f44f263 Reduce code duplication 2016-10-03 23:52:51 -07:00
David Fowler 1647432ef6 Added Connection property to EndPoint
- Exposes a list of connections for user code to act on
- The connection list is thread safe (uses a concurrent dictionary under the hood)
- Removed the Bus and just used the connection list in the samples
2016-10-03 22:58:56 -07:00
moozzyk 4cd4ddfad5 More structed connection metadata 2016-10-03 14:03:10 -07:00
David Fowler 2b7a396670 When EndPoint ends, the connection ends. 2016-10-03 02:41:28 -07:00
David Fowler 99d7aea78c Add User to Connection 2016-10-03 02:08:31 -07:00
David Fowler 8e66d63577 Code cleanup (somewhat)
- Transports have be drastically simplified due to channels
- Make sure tasks don't leak
2016-10-03 01:52:18 -07:00
David Fowler e018fe70f7 Handle message fragments 2016-10-02 23:41:06 -07:00
David Fowler 1a5138e972 Added hub sample 2016-10-02 03:23:23 -07:00
David Fowler 58e58b7fb7 Added JSON RPC demo 2016-10-02 01:51:43 -07:00
David Fowler 9ee33bf01f Add transport connection metadata 2016-10-01 23:49:07 -07:00
David Fowler 58d08c07d0 Added connect and disconnect messages 2016-10-01 19:43:34 -07:00
David Fowler 1ad1120c41 Update the LastActive for reserved connections 2016-10-01 15:59:20 -07:00
David Fowler 613ac2d6c3 Fix long polling 2016-10-01 15:48:15 -07:00
David Fowler d646e3666f Made a thin websocket like wrapper around the client API 2016-10-01 14:27:50 -07:00
David Fowler 540784e525 Added .NET WebSocket sample 2016-10-01 13:59:35 -07:00
David Fowler 5c9729fe4f Move sse to sse specific page 2016-10-01 12:47:35 -07:00
David Fowler 2a369f40f6 Small fixes
- Pass the Connection to each IHttpTransport
- FlushAsync after writing for WebListener
- Add metadata to Connection
- Added WebListener dependency
2016-10-01 11:52:50 -07:00
David Fowler 9f5ef70164 Added support for websockets
- Upgraded to ASP.NET Core 1.1 preview
2016-10-01 10:26:49 -07:00
David Fowler 40ecc9df4d Remove GetOrAdd from AddNewConnection 2016-10-01 03:53:00 -07:00
David Fowler f4f763f136 Only run next queued task if the previous was successful 2016-10-01 03:29:49 -07:00
David Fowler 5baaaac22d Added comments and more tiny code clean up 2016-10-01 03:22:09 -07:00
David Fowler 5195e75b74 Tiny tweaks 2016-10-01 03:09:07 -07:00
David Fowler 813222b406 More cleanup + TaskQueue
- Introduced the TaskQueue
- Added IHttpTransport so abort callbacks can happen outside of the
transport implementation
2016-10-01 03:03:20 -07:00
David Fowler ad2724b22c Split Connection and ConnectionState 2016-10-01 00:57:35 -07:00
David Fowler 7b8e947567 Use new CopyToAsync method 2016-10-01 00:51:51 -07:00
David Fowler 957a9beb95 Updated license.md 2016-10-01 00:45:02 -07:00
David Fowler c3753c4f0e Renamed the project and split into class library and sample 2016-10-01 00:43:33 -07:00
David Fowler de291d4d2a Refactoring
- Move http stuff into Http dispatcher
- Exposed IChannel from connection
- Clean up ConnectionManager (tho it's not great yet)
2016-09-30 22:11:29 -07:00
moozzyk 239b5f815f Fixing longpolling 2016-09-30 15:13:21 -07:00
moozzyk 32ed7ca0c4 SSE kind of works - duplicate messages 2016-09-30 14:21:37 -07:00
David Fowler 27ddb7de90 More cleanup 2016-09-30 02:41:07 -07:00
David Fowler 03352354dc Initial commit 2016-09-30 01:44:56 -07:00