Invio del token obbligatorio e gestione dell'errore nel caso non venga inviato

This commit is contained in:
Lorenzo Iovino 2017-07-11 11:16:12 +02:00
parent 4a29569052
commit 406a5647b8
8 changed files with 533 additions and 422 deletions

View file

@ -36,7 +36,7 @@ public class SendWords extends SwingWorker<Void,Void> {
ByteBuffer buffer = ByteBuffer.allocate(1024);
buffer.clear();
System.out.println("SENDER=" + App.session.account.userName);
Message msg = new Message("WORDS", App.session.account.userName, "", words);
Message msg = new Message("WORDS", App.session.account.userName, App.session.token, words);
String sentence = msg.toString();
buffer.put(sentence.getBytes());
buffer.flip();