Skip to content

Commit

Permalink
Fixed issue with setting native session on SpringRowServerWebsocket
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr-gh committed Dec 13, 2020
1 parent 87d4031 commit 77a3f20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>lab.idioglossia</groupId>
<artifactId>row-server-starter</artifactId>
<version>2.0.2-RELEASE</version>
<version>2.0.3-RELEASE</version>
<name>Springboot Rest Over Websocket Starter</name>
<description>Spring boot starter for Rest Over Websocket</description>
<developers>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import lab.idioglossia.row.server.config.Naming;
Expand Down Expand Up @@ -33,6 +34,7 @@ public ProtocolService(RowFilterChain rowFilterChain) {
objectMapper = new ObjectMapper();
objectMapper.configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, true);
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
validator = Validation.buildDefaultValidatorFactory().getValidator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class SpringRowServerWebsocket extends AbstractWebsocketSession<WebSocket

public SpringRowServerWebsocket(WebSocketSession webSocketSession) {
super(webSocketSession.getAttributes());
setNativeSession(webSocketSession);
this.webSocketSession = webSocketSession;
}

Expand Down

0 comments on commit 77a3f20

Please sign in to comment.