Closed mohandeep2002 closed 2 years ago
same for glitch.. but i couldnt tell them
Try to change your this portion of code in nodejs from:
server.listen(port, () => { console.log('listening on *:' + port); });
to
server.listen(process.env.PORT || port, () => { console.log('listening on *:' + port); });
I deployed my nodejs server in Heroku. It is connecting with the unity but it is not sending and receiving any data from the server.
In Unity I used like this for connecting to my server.
` var uri = new Uri("ws://herokuapp name<>.herokuapp.com");
`