I'm having an issue since my update from Angular 5 / ng2-stompjs 4.0.0 to Angular 7 / ng2-stompjs 7.0.1.
It seems to be related to the content length of my file that I'm sending.
I'm actually sending a text file using the publish method. I've 2 files (which are converted into a string before sending with publish) : the first one is ~14.3kB and the other one is ~14kB - something like 13.980kB.
The file with 14kB works fine, it is sent correctly and received by my server without any issue. But the second file with 14.3kB never reach my server and my stomp connection is lost and then reconnects instantly.
In that case, sometimes I receive this error :
Error : WebSocket connection to 'ws://localhost:4200/' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 0, reserved3 = 0
or this one :
WebSocket connection to 'ws://localhost:4200/ws-test' failed: Invalid frame header
When I check my frames, I can see in the data tab SEND destination:my_destination [...] and in the length tab 16770.
And just after this, another frame (Opcode -1).
I think it is not due to my server because I changed the max length in my configuration, and it worked fine with the 4.0.0 of ng2-stompjs version. I don't think it is related to the Angular version too, so that's why I'm posting here.
Do you remember changing something in the code related to this issue?
I'm having an issue since my update from Angular 5 / ng2-stompjs 4.0.0 to Angular 7 / ng2-stompjs 7.0.1.
It seems to be related to the content length of my file that I'm sending.
I'm actually sending a text file using the publish method. I've 2 files (which are converted into a string before sending with publish) : the first one is ~14.3kB and the other one is ~14kB - something like 13.980kB.
The file with 14kB works fine, it is sent correctly and received by my server without any issue. But the second file with 14.3kB never reach my server and my stomp connection is lost and then reconnects instantly.
In that case, sometimes I receive this error :
Error : WebSocket connection to 'ws://localhost:4200/' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 0, reserved3 = 0or this one :
WebSocket connection to 'ws://localhost:4200/ws-test' failed: Invalid frame headerWhen I check my frames, I can see in the data tab
SEND destination:my_destination [...]and in the length tab16770.And just after this, another frame
(Opcode -1).I think it is not due to my server because I changed the max length in my configuration, and it worked fine with the 4.0.0 of ng2-stompjs version. I don't think it is related to the Angular version too, so that's why I'm posting here.
Do you remember changing something in the code related to this issue?