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 ...
3
votes
Accepted
Await socket Response
You have a few flags (removed, responded) which are almost equivalent and possibly useless. ...
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. ...
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- ...
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.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
socket.io × 32javascript × 27
node.js × 23
express.js × 8
chat × 5
python × 3
jquery × 3
html × 3
ecmascript-6 × 3
react.js × 3
flask × 3
object-oriented × 2
mysql × 2
tic-tac-toe × 2
socket × 2
mongodb × 2
client × 2
websocket × 2
beginner × 1
generics × 1
asynchronous × 1
typescript × 1
http × 1
angular.js × 1
async-await × 1