Network library in javascript mode
in
Core Library Questions
•
1 month ago
Is there any library for the javascript mode ?
I have a sktech who work fine in java mode but not in javascript mode.
here is the sketch
import processing.net.*;
Client myClient;
void setup()
{
myClient = new Client(this, "192.168.1.10, 8080); // there is a server a this adress and this port
}
void draw ()
{
// some drawing a other code
}
void mousePressed ()
{
myClient.write( "hello \n");
}
As said above this code work fine both in Java mode and Android mode but not in the javascript mode.
In Javascript mode if the line " import processing.net.*; " is omitted all work fine except co.
if i add the line import processing.net.*;
i have à blank page.
I have a sktech who work fine in java mode but not in javascript mode.
here is the sketch
import processing.net.*;
Client myClient;
void setup()
{
myClient = new Client(this, "192.168.1.10, 8080); // there is a server a this adress and this port
}
void draw ()
{
// some drawing a other code
}
void mousePressed ()
{
myClient.write( "hello \n");
}
As said above this code work fine both in Java mode and Android mode but not in the javascript mode.
In Javascript mode if the line " import processing.net.*; " is omitted all work fine except co.
if i add the line import processing.net.*;
i have à blank page.
1