add support for ILLEGAL_PAYLOAD_SIZE close code and fix message padding

This commit is contained in:
hippoz 2021-10-13 17:51:46 +03:00
parent f6d80bed32
commit ec4c98b760
Signed by: hippoz
GPG key ID: 7C52899193467641
4 changed files with 11464 additions and 37983 deletions

37976
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -19,6 +19,7 @@ const wsCloseCodes = {
FLOODING: [4007, "Flooding"], FLOODING: [4007, "Flooding"],
NO_PING: [4008, "No ping"], NO_PING: [4008, "No ping"],
UNSUPPORTED_ATTRIBUTE: [4009, "Unsupported attribute."], UNSUPPORTED_ATTRIBUTE: [4009, "Unsupported attribute."],
ILLEGAL_PAYLOAD_SIZE: [4010, "Illegal payload size"],
}; };
const cancelReconnectionForCodes = [ const cancelReconnectionForCodes = [
wsCloseCodes.NOT_AUTHENTICATED[0], wsCloseCodes.NOT_AUTHENTICATED[0],

View file

@ -1,11 +1,15 @@
.message { .message {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
margin: 2px; padding: 3px;
padding: 1px;
max-width: 50vw; max-width: 50vw;
} }
.message-content {
padding-left: 8px;
text-rendering: optimizeLegibility;
}
.no-messages-warning { .no-messages-warning {
@extend .no-select; @extend .no-select;
@ -21,8 +25,3 @@
.unread-indicator { .unread-indicator {
float: right; float: right;
} }
.message-content {
padding-left: 6px;
text-rendering: optimizeLegibility;
}

11457
yarn.lock Normal file

File diff suppressed because it is too large Load diff