()
| 266 | } |
| 267 | |
| 268 | private void onopen() { |
| 269 | logger.fine("transport is open - connecting"); |
| 270 | |
| 271 | if (this.auth != null) { |
| 272 | this.packet(new Packet<>(Parser.CONNECT, new JSONObject(this.auth))); |
| 273 | } else { |
| 274 | this.packet(new Packet<>(Parser.CONNECT)); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | private void onclose(String reason) { |
| 279 | if (logger.isLoggable(Level.FINE)) { |