Code example for NotYetConnectedException

0
						instance._send(text);
					} catch (IOException e) {
						instance.onError(e);
					} 
				} else { 
					instance.onError(new NotYetConnectedException());
				} 
			} 
		}).start();
	} 
 
	// when a message is received 
	public void onMessage(final String msg) {
		// post a new thread to View 
		appView.post(new Runnable() {
			@Override 
			public void run() { 
				appView.loadUrl(buildJavaScriptData(EVENT_ON_MESSAGE, msg));
			} 
		}); 
	}