Closed finnhodgkin closed 7 years ago
The regex to check if the message input is empty exists, it's just not hooked up to anything:
https://github.com/dwyl/hapi-socketio-redis-chat-example/blob/master/lib/client.js#L57-L63
Changing the next if statement to an 'else if' fixes this.
@finnhodgkin thanks for fixing. 👍
The regex to check if the message input is empty exists, it's just not hooked up to anything:
https://github.com/dwyl/hapi-socketio-redis-chat-example/blob/master/lib/client.js#L57-L63
Changing the next if statement to an 'else if' fixes this.