Modify the opening handshake in WebsSocket - Mendix Forum

Modify the opening handshake in WebsSocket


In some communication protocol, which is based on WebSocket, we need to read and write the opening handshake header. In Java we can do this with :

public void modifyHandshake(ServerEndpointConfig sec,
                            HandshakeRequest request,
                            HandshakeResponse response)


For example there is a communication protocol, where there is different versions, and the client writes in the header, what versions they are accept. So we need to read it form the header, for example (MyProtocolVersion : 3.4, 4.5 ), and respond (MyProtocolVersion : 3.4) or (MyProtocolVersion : 4.5)

In the future is it possible that we will have access to it?

2 answers


We ran into a similar problem with my team and looking for some solutions too...



We have the same issue. Is there some update?