Test Socket.IO connectivity

To test the connectivity to the Express Socket.IO server use the following command from a terminal window npx: installed 11 in 4.89s0{“sid”:”vOQHhey-0EYPaAvVAAAA”,”upgrades”:[],”pingInterval”:25000,”pingTimeout”:5000}40 If the return value is 40, in the next 30 seconds the server is listening for new events (pingInterval ms + pingTimeout ms). You can send one with the command42[“EVENT_NAME”, “ATTRIBUTE1”, “ATTRIBUTE2”]

has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource

When your website calls the Socket.IO backend API from another domain, the browser console displays the error message Access to XMLHttpRequest at ‘http://…:3000/socket.io/?EIO=3&transport=polling&t=N7Y-Fot’ from origin ‘http://….com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. To enable Cross-origin resource sharing add the code to the top of your Socket.IO …

Creating a multiplayer online card game with Node.js and Phaser 3

As the world is locked down due to the COVID-19 Corona Virus, we are quarantined at home. We miss the company of our families and friends, so online games are the only option to play together. We are going to create an online multiplayer game that can be used for any tabletop gameplay. The frontend …