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
No known key found for this signature in database
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"],
NO_PING: [4008, "No ping"],
UNSUPPORTED_ATTRIBUTE: [4009, "Unsupported attribute."],
ILLEGAL_PAYLOAD_SIZE: [4010, "Illegal payload size"],
};
const cancelReconnectionForCodes = [
wsCloseCodes.NOT_AUTHENTICATED[0],

View file

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