问题
I want to create socket connection with processing.js. But processing.js can't use java library. Can I use processing.net.* ? And What is the processing libraries processing.js can execute? I can't find the list of libraries. Help me!!
回答1:
As far as I know, Processing.JS has no support for Processing libraries. But since it is JavaScript, you can use a framework like jQuery and any libraries for jQuery.
As far as socket connections, take a look at Socket.io (http://socket.io/) to connect to a socket from JavaScript. You can use JavaScript inside Processing.JS.
回答2:
There ARE some libraries which are 'cross-platform', that is, they work with (at least) Java and Javascript. Two examples I know of are Guido and RiTa, but there may well be others...
来源:https://stackoverflow.com/questions/20439212/what-is-the-processing-libraries-processing-js-can-execute