Hi @jpwsutton @knolleary ,
I have some problems when I use the client.subscribe,it will occur that 'Cannot read property 'subscribe' of undefined'.Then I find the client is undefined.But,I have use the client to connect,here are my code:
When I click connect ,it will call the method 'connect()'.So,when I click connect in my web page,it will occur problems like that:
And I guess that these method named 'onConnect,disconnect,onConnectionLost..' are belong to callback method,in these methods the client was undefine.But how can I deal these problems?
Hi @jpwsutton @knolleary , I have some problems when I use the client.subscribe,it will occur that 'Cannot read property 'subscribe' of undefined'.Then I find the client is undefined.But,I have use the client to connect,here are my code: When I click connect ,it will call the method 'connect()'.So,when I click connect in my web page,it will occur problems like that:
And I guess that these method named 'onConnect,disconnect,onConnectionLost..' are belong to callback method,in these methods the client was undefine.But how can I deal these problems?
Any one can help me?Thank you very much!