When Gateway is acting as a client, if the server violates RFC 6455 by sending a masked frame(BINARY or TEXT), then Gateway (WsnConnector) just treats the message normally instead of failing the connection, as seen in the following tests under transport/wsn module in org.kaazing.gateway.transport.wsn.specification.ws.connector package:
When Gateway is acting as a client, if the server violates RFC 6455 by sending a masked frame(BINARY or TEXT), then Gateway (WsnConnector) just treats the message normally instead of failing the connection, as seen in the following tests under transport/wsn module in
org.kaazing.gateway.transport.wsn.specification.ws.connector
package:MaskingIT.shouldFailWebSocketConnectionWhenServerSendsMaskWithTextFrame()
MaskingIT.shouldFailWebSocketConnectionWhenServerSendsMaskWithBinaryFrame()
Gateway (i.e. WsnConnector) should instead respond with a CLOSE frame with 1002 code.