10 lines
293 B
Haxe
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
package kha.netsync;
import haxe.io.Bytes;
extern class Network {
public function new(url: String, port: Int, errorCallback: Void->Void, closeCallback: Void->Void);
public function send(bytes: Bytes, mandatory: Bool): Void;
public function listen(listener: Bytes->Void): Void;
}