Repository navigation
WIP: Socket.io v3 - #4916
WIP: Socket.io v3#4916HMarzban wants to merge 21 commits into
Conversation
|
Excited to watch the tests run 👯♀️ |
|
This pull request introduces 1 alert when merging 2d08f62 into 0aad3b7 - view on LGTM.com new alerts:
|
JohnMcLear
left a comment
There was a problem hiding this comment.
Btw, you can use "draft" pull requests for WIP things :)
| </script> | ||
|
|
||
| <script type="text/javascript" src="../socket.io/socket.io.js?v=<%=settings.randomVersionString%>"></script> | ||
| <script type="text/javascript" src="../socket.io/socket.io.js"></script> |
There was a problem hiding this comment.
Unfortunately I had to remove the random version tag by force, otherwise the socket.io client script would not load!
|
If Also, |
|
This pull request introduces 1 alert when merging e1d8b41 into 0aad3b7 - view on LGTM.com new alerts:
|
|
From now on, we have to set the In this case we must have to put |
This is because the tests mostly don't cover real time collaboration, this is something I'm working on at the moment :) |
|
This pull request introduces 1 alert when merging 7fc14d7 into 912f0f1 - view on LGTM.com new alerts:
|
|
Well, let me drop the mic, the real time collaboration issue was resolved. work like magic ⚔🧝♂️
|
|
This pull request introduces 1 alert when merging 2f4ef59 into 912f0f1 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 5b4c1d9 into 912f0f1 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging b39e041 into 4ca989a - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 5396be1 into 4ca989a - view on LGTM.com new alerts:
|
This might be reverted, depending on what happens.
|
This pull request introduces 1 alert when merging 6af8564 into 4044860 - view on LGTM.com new alerts:
|
|
I was reading this changeset recently: If we do this migration, The road is paved for us for further upgrades |
|
This pull request introduces 2 alerts when merging 2e29f23 into a796811 - view on LGTM.com new alerts:
|
|
@webzwo0i Sorry to be late for comments, I was in vacation. |
|
This pull request introduces 1 alert when merging f516d32 into a796811 - view on LGTM.com new alerts:
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Hey guys, have you thought about this PR! I have already fixed all the problems related to this upgrade! do you have a socket upgrade plan or is it necessary anymore? |
|
Before we can merge this we need to figure out a way to support plugins that expect socket.io 2.x. For example: https://github.com/ether/ep_webrtc/blob/7e5941f4a21ab869a8448ecb771c844643f3ef94/index.js#L46-L48 |
|
It's okay, I can help you! I change this function like below and it works like a charm! const handleRTCMessage = (socket, client, payload) => {
// if(!socketIo) return false
const userId = payload.from;
const padId = payload.padId;
const to = payload.to;
const msg = {
type: 'COLLABROOM',
data: {
type: 'RTC_MESSAGE',
payload: {
from: userId,
to,
data: payload.data,
},
},
};
socketIo.to(padId).emit('RTC_MESSAGE', msg);
}; |
|
My point is that we need to audit all plugins to determine which ones depend on v2-specific behavior, then update them to work both with and without this PR. Alternatively, change this PR so that the plugins that depend on v2-specific behavior somehow continue to work unchanged. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@HMarzban I know it's been some time since you worked on this pull request. During the last 2.5 years has changed and I am currently the only maintainer of Etherpad. I am looking for help with the upgrade to socket.io v4. So if you find some time it would be awesome if you could help me with the upgrade. So TDLR: It would be awesome if you could help me with the socket io v4 upgrade. |
|
Hi, @SamTV12345 Thank you for reaching out and for keeping Etherpad thriving! It's great to hear about the progress and the introduction of TypeScript to ueberdb. I'm excited to help with the socket.io v4 upgrade. However, I'm currently swamped with tasks and will be busy until the 2nd of February. But right after that, I'm all in! |
Thanks for the help. This is very much appreciated. Yeah the Etherpad code with its hundreds of public methods is a bit overwhelming at least for me. So any help is awesome. Sure it is not a problem if you are currently busy. So until February and thanks for reporting back. |
|
I guess we can finally close this <3 |
No description provided.