Invio del token obbligatorio e gestione dell'errore nel caso non venga inviato
This commit is contained in:
parent
4a29569052
commit
406a5647b8
8 changed files with 533 additions and 422 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue