@ceremcem, that you get the not found indicates that the context where you invoke it may not be MyClass... what is the value of this.socket? Your work around may only free referenced things, which is not good enough. The .close() most likely calls some functions that remove 'things' from some other objects...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@ceremcem, that you get the
not found
indicates that the context where you invoke it may not be MyClass... what is the value of this.socket? Your work around may only free referenced things, which is not good enough. The.close()
most likely calls some functions that remove 'things' from some other objects...