mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
Migrate Socket.IO from Version 2 to Version 3 🚀 (#6152)
* feat :migrate socket.io 2 -> 3 * fix: backend test * fix: ts error * rm * reset the test timeout * Updated cli client. * Updated lock file. * Use updated load tester. --------- Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com>
This commit is contained in:
parent
47f0113fd7
commit
b2be2ca714
17 changed files with 265 additions and 321 deletions
|
@ -156,7 +156,7 @@ const getCollabClient = (ace2editor, serverVars, initialUserInfo, options, _pad)
|
|||
};
|
||||
|
||||
const sendMessage = (msg) => {
|
||||
getSocket().json.send(
|
||||
getSocket().emit('message',
|
||||
{
|
||||
type: 'COLLABROOM',
|
||||
component: 'pad',
|
||||
|
|
|
@ -207,7 +207,7 @@ const sendClientReady = (isReconnect) => {
|
|||
msg.reconnect = true;
|
||||
}
|
||||
|
||||
socket.json.send(msg);
|
||||
socket.emit("message", msg);
|
||||
};
|
||||
|
||||
const handshake = async () => {
|
||||
|
|
|
@ -95,7 +95,7 @@ const init = () => {
|
|||
|
||||
// sends a message over the socket
|
||||
const sendSocketMsg = (type, data) => {
|
||||
socket.json.send({
|
||||
socket.emit("message", {
|
||||
component: 'pad', // FIXME: Remove this stupidity!
|
||||
type,
|
||||
data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue