Skip to content

conflict between box2dweb and socket.io versions 3 and 4 #4573

Discussion options

You must be logged in to vote

I see now that this is a new example of an old bug as discussed in issues 41, 43, and 44 of box2dweb. As discussed, there are several similar ways to eliminate the problem.

I chose to change Object.prototype.defineProperty to Object.defineProperty in the first IF statement:
https://www.timetocode.org/Box2D.js.html

Version 4 of socket.io is now in use:
https://www.timetocode.org/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jim-miller-gac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant