简体   繁体   中英

Can I connect a Unity program to node.js server via socket.io and JavaScript, and if yes how?

I would like to know if it's possible to connect to a node.js socket.io server from a Unity program. I know we can code with JavaScript inside unity but do Unity has the capabilities of a browser to like transfert data with socket.io? And if yes, how would i do that?

This line of code here allow my web page to connect to socket.io:

var socket = io.connect('http://127.0.0.1:6613');

Will it be that easy to do with in Unity and if yes, what am I waiting for?

The link in the comments answered my question. I guess I can't mark my own answer as having solved the problem since it wouldn't be honest, I'd rather not obtain reputation points I didn't earn.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM