how to call an object method as event handler in Nodejs

后端 未结 0 1990
别跟我提以往
别跟我提以往 2021-01-11 21:49

I defined an object like this:

const Websocket = function(ws){
    
    this.ws = ws    
    this.open = function(){
        console.log("WS connected!&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题