Skip to content

Commit

Permalink
make transport pluggable
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Hallman committed Nov 27, 2014
1 parent 595235e commit 27dd4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pykurento/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from pykurento.transport import KurentoTransport

class KurentoClient(object):
def __init__(self, url):
def __init__(self, url, transport=None):
self.url = url
self.transport = KurentoTransport(self.url)
self.transport = transport or KurentoTransport(self.url)

def get_transport(self):
return self.transport
Expand Down

0 comments on commit 27dd4ef

Please sign in to comment.