Socket Connection Factory#828
Conversation
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
21d7b43 to
5465c4a
Compare
|
This is more in line with my understanding of a factory, but it changes the API ;-). I tried it with an implementation of INatsSocketConnectionFactory and INatsTlsUpgradeSocketConnection, and it seems to work. But shouldn't it be called INatsProxyUpgradeSocketConnection? |
Yes, it seemed more natural to use an interface that the internal and external implementations could both implement
I don't think that it is specific to proxies, you could implement other kinds of sockets like Unix sockets too |
|
but also not specific to TLS ;-) |
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
|
But |
|
Tests are now passing but I think we should explore 2 more areas:
|
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
|
I reduced |
mtmk
left a comment
There was a problem hiding this comment.
Awesome feature! LGTM thanks @caleblloyd
* Stopped testing with net6.0 (#821) * Update JetStream models (#832) * Add direct request-reply (#829) * Socket Connection Factory (#828) * Fix proxy with TLS scenario with SocketConnectionFactory (#826) * Make NatsJSConstants public (#825) * Use Stopwatch in PingCommand for more precise timing (#827) * Fix netstandard bugs and tidy up tests (#817)
* Stopped testing with net6.0 (#821) * Update JetStream models (#832) * Add direct request-reply (#829) * Socket Connection Factory (#828) * Fix proxy with TLS scenario with SocketConnectionFactory (#826) * Make NatsJSConstants public (#825) * Use Stopwatch in PingCommand for more precise timing (#827) * Fix netstandard bugs and tidy up tests (#817)
INatsSocketConnectionFactory, which is implemented byTcpConnectionandWebSocketConnectionor custom in aSocketConnectionFactoryoptINatsTlsUpgradeableSocketConnectionwhich is implemented byTcpConnectionor custom in aSocketConnectionFactoryopt