|
|
@ -69,7 +69,7 @@ public class Send {
|
|
|
|
Uri uri = Uri.parse("wss://" + Uri.parse(host).getHost() + "/api/ws");
|
|
|
|
Uri uri = Uri.parse("wss://" + Uri.parse(host).getHost() + "/api/ws");
|
|
|
|
|
|
|
|
|
|
|
|
WebSocket ws = new WebSocketFactory().createSocket(uri.toString(), TIMEOUT);
|
|
|
|
WebSocket ws = new WebSocketFactory().createSocket(uri.toString(), TIMEOUT);
|
|
|
|
ws.setFrameQueueSize(100);
|
|
|
|
ws.setFrameQueueSize(32); // 32 x 64KB = 2 MB
|
|
|
|
|
|
|
|
|
|
|
|
Semaphore sem = new Semaphore(0);
|
|
|
|
Semaphore sem = new Semaphore(0);
|
|
|
|
List<String> queue = Collections.synchronizedList(new ArrayList<>());
|
|
|
|
List<String> queue = Collections.synchronizedList(new ArrayList<>());
|
|
|
|