This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import websockets.*; | |
WebsocketServer ws; | |
ArrayList<String> nachrichten; | |
boolean newMessages = false; | |
void setup(){ | |
nachrichten = new ArrayList<String>(); | |
ws = new WebsocketServer(this, 9000, "/chat"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import websockets.*; | |
WebsocketClient wsc; | |
WebsocketServer ws; | |
int x, y; | |
int role = 2; | |
void setup() { | |
size(400, 400); | |
if (role == 1) |
NewerOlder