Skip to main content
6 votes
Accepted

Node websockets

In node, throwing an error without catching it will kill the process. This seems to be the primary error handling mode (and based on this it seems you then rely on pm2 to restart the process). This ...
George's user avatar
  • 311
3 votes
Accepted

Await socket Response

You have a few flags (removed, responded) which are almost equivalent and possibly useless. ...
Adriano Repetti's user avatar
2 votes
Accepted

9X9 Tic Tac Toe variant with frontend in react and backend in python flask_socketio

I'm not fantastic with Typescript; so let's take a look at your Python: Credentials app.config['SECRET_KEY'] = 'secret!' This shouldn't be baked into your code. ...
Reinderien's user avatar
  • 71.1k
2 votes
Accepted

An Express route, which renders a page, and makes use of socket.io

Conditional line not in brackets There is an if statement in queryAPI() without brackets. This impacts readability greatly- ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
2 votes

An Express route, which renders a page, and makes use of socket.io

Linting The code reads well. There is one convention you missed: use \s to indicate whitespace. ...
dfhwze's user avatar
  • 14.2k

Only top scored, non community-wiki answers of a minimum length are eligible