diff --git a/lib/emitter.js b/lib/emitter.js
index <HASH>..<HASH> 100644
--- a/lib/emitter.js
+++ b/lib/emitter.js
@@ -70,7 +70,7 @@ Emitter.parseURI = function(options)
 		break;
 
 	case 'ws:':
-		options.websocket = true;
+		options.ws = true;
 		options.host = parsed.hostname;
 		options.port = parsed.port;
 		break;
@@ -101,7 +101,7 @@ Emitter.prototype.connect = function connect()
 
 	if (this.options.udp)
 		this.client = new UDPStream(this.options);
-	else if (this.options.websocket)
+	else if (this.options.ws)
 		this.client = new WSStream(this.options);
 	else
 		this.client = net.connect(this.options);
renamed websocket to ws