Posts by borges • 224 points
3 posts
-
1
votes1
answer28
viewsA: Update array without having to wait for another user to log in
The problem is here: io.emit('displayUsers', { users: users }) users[socket.id] = data.username When a user enters, you transmit the list of users to everyone before to enter the new user. Here’s…
-
-1
votes1
answer32
viewsA: "subplot" is giving error in "title"
Check if in some code before, you are not setting the value of plt.title instead of calling it as a function. For example, if there is a line of the type plt.title = "Título aqui" and subsequently a…
-
7
votes4
answers107
viewsA: How to use ' inside an array?
According to the comments, your code only finds smileys when they use ’ instead of '. I used Wordpress for a while, and I realized that it replaced some characters with others when sending posts,…