After extended sessions of any of the Telltale adventures (Walking Dead, etc), I would spend about 10 minutes post-game with the sense that real-life conversations were like, scripted, and I was navigating by selecting the best option.
Arguably, not a wrong assessment of life, but it feels really gamified when affected
If “build the server and client in the same language” is a hard requirement, I believe your only choice is JavaScript…
The tone of the post makes me think you’re newer to programming, so I’ll leave it at that, as extensions to this question can overwhelm quickly, but yeah, JavaScript is a fine language for what you’re doing