Send messages. @param args data to send. @return a reference to this object.
(final Object... args)
| 143 | * @return a reference to this object. |
| 144 | */ |
| 145 | public Socket send(final Object... args) { |
| 146 | EventThread.exec(new Runnable() { |
| 147 | @Override |
| 148 | public void run() { |
| 149 | Socket.this.emit(EVENT_MESSAGE, args); |
| 150 | } |
| 151 | }); |
| 152 | return this; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Emits an event. When you pass {@link Ack} at the last argument, then the acknowledge is done. |