这是indexloc提供的服务,不要输入任何密码
Skip to content

Update socket.io to 4.8.1 with open-easyrtc socket.io-4 branch #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 5, 2025

Conversation

vincentfretin
Copy link
Member

@vincentfretin vincentfretin commented Jan 5, 2025

Use the open-easyrtc socket.io-4 branch open-easyrtc/open-easyrtc#70

To update your project, be sure you use latest socket.io client, replace

<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.5.0/socket.io.slim.js"></script>

by

<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.8.1/socket.io.min.js"></script>

in server/easyrtc-server.js or server.js, replace

const socketServer = socketIo.listen(webServer, {"log level": 1});

by

const socketServer = socketIo(webServer, {"log level": 1});

in package.json (choose the one that applies to you):

    "open-easyrtc": "open-easyrtc/open-easyrtc#9e2e0002ddc939daa36a5b1f499fa8568f3438af",
    "socket.io": "^4.8.1"

or

    "networked-aframe": "^0.14.0"

and get the updated dependencies:

rm -rf package-lock.json node_modules
npm install

@vincentfretin vincentfretin self-assigned this Jan 5, 2025
@vincentfretin vincentfretin merged commit 327e54c into master Jan 5, 2025
1 check passed
@vincentfretin vincentfretin deleted the update-socketio branch January 5, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant