File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ def __init__(self):
81
81
def ws_connect (self ):
82
82
'''Connect. Opens websocket connection.'''
83
83
if self .client is None and self .hostentry .get () is not None :
84
- #self.start_connection()
85
84
self .ws_thread = threading .Thread (target = self .start_connection )
86
85
self .ws_thread .start ()
87
86
self .status_thread = threading .Thread (target = self .on_status_change )
@@ -90,7 +89,10 @@ def ws_connect(self):
90
89
def start_connection (self ):
91
90
'''Opens connection'''
92
91
self .client = websocket .WebsocketController (None , None , None )
93
- self .client .begin_connection ("wss://echo.websocket.org" )
92
+ port = 80
93
+ if (self .portentry .get () is not None :
94
+ port int (self .portentry .get ())
95
+ self .client .begin_connection (self .hostentry .get (), port )
94
96
95
97
96
98
def send (self , event ):
You can’t perform that action at this time.
0 commit comments