- What I did
Implemented WebSocket support by introducing a new connection factory structure to support both SecureSocket and WebSocket connections. This update allows AtLookupImpl to dynamically choose between secure socket and WebSocket connections, enhancing flexibility and enabling WebSocket-based communication when required.
- How I did it
Created a new abstract factory class, AtLookupOutboundConnectionFactory, to standardize the creation of underlying connections, outbound connection wrappers, and message listeners for different connection types.
Developed AtLookupSecureSocketFactory and AtLookupWebSocketFactory to handle secure socket and WebSocket connections, respectively. Each factory is responsible for:
Establishing the underlying connection (either SecureSocket or WebSocket).
Wrapping the connection into an outbound connection instance (OutboundConnectionImpl or OutboundWebsocketConnectionImpl).
Refactored AtLookupImpl to use these connection factories, selecting the appropriate one based on the useWebSocket flag.
- How to verify it
Existing tests for SecureSocket connections should continue working as expected.
Added functional tests with useWebsocket set to true should pass
- What I did Implemented WebSocket support by introducing a new connection factory structure to support both SecureSocket and WebSocket connections. This update allows AtLookupImpl to dynamically choose between secure socket and WebSocket connections, enhancing flexibility and enabling WebSocket-based communication when required.
- How I did it
- How to verify it
- Description for the changelog
add WebSocket support in AtLookupImpl