[Debugger] Implementation of transport over serial connection (#2800)

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka
2019-03-26 09:39:51 +01:00
committed by GitHub
parent 0981985134
commit 3d656cdf57
14 changed files with 577 additions and 51 deletions
+2 -3
View File
@@ -21,11 +21,10 @@ WEBSOCKET_BINARY_FRAME = 2
WEBSOCKET_FIN_BIT = 0x80
class WebSocket(object):
def __init__(self, address, protocol):
def __init__(self, protocol):
self.data_buffer = b""
self.protocol = protocol
self.address = address
def __handshake(self):
""" Client Handshake Request. """
@@ -55,7 +54,7 @@ class WebSocket(object):
def connect(self, config_size):
""" WebSockets connection. """
self.protocol.connect(self.address)
self.protocol.connect()
self.data_buffer = b""
self.__handshake()