Ask coding questions

← Back to all posts
Live Chat kick command socket.io
h
RossJames (271)

Hi,

i have been working out a kick command and have almost finished, the only problem I am having is on client side where name variable is blank. If you see in client/main.js line 89 to 97, this is where the client is comparing their name to the person being kicked, the only problem is that name on the clientside is blank. if you type kick %insertnamehere% then everyone in the chat will message the name of the person being kicked. just wont compare it to there own name. Any ideas why name is blank?
https://repl.it/@RossJames/Simple-Live-Chat

Thank!

Answered by Geocube101 (588) [earned 5 cycles]
View Answer
Commentshotnewtop
Geocube101 (588)

I am not able to run your code as your index.js file throws an error

duck132912 (164)

is says

repl.it refused to connect