Interaction with room logs is changing to be more straightforward. This
is the first step of the change, which changes rooms.js.
- Rename: logEntry -> roomlog
- Rename: sendModCommand -> sendMods
- Rename: addLogMessage -> addByUser
- New function: sendModsByUser
The long-term plan is documented in:
https://github.com/Zarel/Pokemon-Showdown/pull/3972#issuecomment-352226219
Despite technically having access to all three, the Pledge tutor selects
the move based on the Pokemon, and it's always Grass because it's the
first of the three.
Rooms now have their logging abstracted into their own file, which also
allows the rest of rooms.js to be simplified by a decent margin.
This is in preparation for using Redis as a backing for scrollback log
storage, which will give us a lot more RAM to work with.
My newest newest plan is actually to locally cache room scrollback, and
only read battle logs from Redis. This will make chatroom-joining
faster.
- Adds /desubroom alias to /unsubroom
- Adds /setsubroom alias to /subroom
- Adds error checking in /subroom to say "Did you mean /subrooms?"
- Now says the parent room when you do /subrooms in a subroom. Also adds /parentroom to do this as well
- Changes some non-changing `let` to `const`
- Removes unnecessary space following `Chat.html`
- Add message in /roomauth that references subroom auth
Permessage-deflate is an extensIon that compresses websocket messages with zlib.
SockJS already supports it (indirectly) and the client's load balancer already
inserts the header in the opening handshake when making a WebSocket connection.
Config.wsdeflate makes this optional and allows tweaking the extension's resource
usage.