Intro: Hello. So I started on a chat based social media app with Socket.io, but it seems like the client needs to open a localhost server to be able to communicate with the socket manager on my web API (node, express, socket.io).
Question Tree: Is it possible to make a nodejs server client side and execute a script with an html front end button so that the socket has a localhost to run tcp on to communicate to my web API? If so, how can I do this? If not, what are some alternatives to achieve the same results?
conclusion: Any help is appreciated, I am learning how to do this sort of development for school and I just want some clarity. Thank you!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…