I'm looking for the best way for communicate web server with users. I try to explain:
I have a nodejs server. I need send information to each user, based on his ID. And the users respond with other info. Like a game, in real time, but they must be able to create a code for connect to my server.
How to make publisher in server that can get/send the info in any language?
Well, any language can pretty much connect via HTTP, so there is Http long poling.
Even better there is websockets, and a quick search seems to reveal most languages have websocket support.
There are also ready made rpc frameworks you could use. Eg. https://zeroc.com/products/ice