add support for ILLEGAL_PAYLOAD_SIZE close code and fix message padding
This commit is contained in:
parent
f6d80bed32
commit
ec4c98b760
4 changed files with 11464 additions and 37983 deletions
37976
package-lock.json
generated
37976
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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],
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue