Skip to content
Success

Changes

Summary

  1. Northbound websocket improvements (commit: 3001cde) (details)
Commit 3001cde1f6999169e25592d615f26e6b36f19381 by Tim Ward
Northbound websocket improvements

This commit makes several improvements to the northbound websocket interface:

* Authentication using the sensinact Authenticator services
* Improved ordering guarantees. Websocket clients will always receive a subscription response before receiving their first notification for that subscription
* Thread safety - the web socket session was not updated in a thread safe way so notifications would sometimes fail with NPE

Signed-off-by: Tim Ward <timothyjward@apache.org>
(commit: 3001cde)
The file was modified prototype/core/impl/src/main/java/org/eclipse/sensinact/prototype/impl/SessionManager.java
The file was modified prototype/northbound/websocket/integration-test.bndrun
The file was addedprototype/northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/SecureWebSocketTest.java
The file was modified prototype/northbound/websocket/pom.xml
The file was modified prototype/northbound/sensorthings/rest.gateway/integration-test.bndrun
The file was modified prototype/core/impl/src/main/java/org/eclipse/sensinact/prototype/impl/SensiNactSessionImpl.java
The file was modified prototype/pom.xml
The file was modified prototype/northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketCreator.java
The file was modified prototype/northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketEndpoint.java
The file was modified prototype/northbound/websocket/src/main/java/org/eclipse/sensinact/northbound/ws/impl/WebSocketJettyRegistrar.java
The file was modified prototype/northbound/websocket/src/test/java/org/eclipse/sensinact/northbound/websocket/integration/WebSocketTest.java
The file was modified prototype/northbound/rest/integration-test.bndrun