Does webgl support Unity’s RCP system for networking?
not sure about Unity’s RCP system, but Photon is building a Unity 5 WebGL package with RCP’s so should be fine.
WebGL doesn’t support socket based connections or the full networking stack natively (only HTTP requests). But you can integrate it with a third party javascript library like Socket.io (http://www.socket.io). That’s likely what some of the third party providers like Photon will be doing.
Very interesting webgl + socket.io , some examples of these two technologies together?
Code example? Tutorial?
@farrisarts Something to consider for your library?
You are right! I have been discussing with one of my guys that maybe we should put him on the WebGL project for our networking system. If we did, RPC would be one of our main priorities as it is a core part to any networking system. For anyone who wants to make suggestions (or show interest) let us know on our post ![]()
Rpcs could potentially be supported, just not the standard socket connections. They would either be initiated based on the result of a rest request like signalr does for browsers and/or servers that don’t support web sockets, or they could be marshalled via a JavaScript proxy such as with socket io.