Code example for NotYetConnectedException

0
						WebSocket.this._send(text);
					} catch (IOException e) {
						WebSocket.this.onError(e);
					} 
				} else { 
					WebSocket.this.onError(new NotYetConnectedException());
				} 
			} 
		}).start();
	} 
 
	/** 
	 * Called when an entire text frame has been received. 
	 *  
	 * @param msg 
	 *            Message from websocket server 
	 */ 
	public void onMessage(final String msg) {
		if (listener != null)
        { 
            listener.onMessage(msg);