diff --git a/lib/EinarosWSStream.js b/lib/EinarosWSStream.js
index <HASH>..<HASH> 100644
--- a/lib/EinarosWSStream.js
+++ b/lib/EinarosWSStream.js
@@ -3,13 +3,13 @@
 var env = require('./env');
 var ws_lib = require('ws');
 
-function EinarosWSStream(ws) {
+function EinarosWSStream(ws, opts) {
     var self = this,
         ln = this.lstn = {},
         buf = [];
 
     if (typeof ws === 'string') { // url passed
-        ws = new ws_lib(ws);
+        ws = new ws_lib(ws, opts);
     }
     this.ws = ws;
     if (ws.readyState !== 1/*WebSocket.OPEN*/) {
pass opts to einaros ws library