Pusher.com client for Espruino #682
Replies: 7 comments
-
Posted at 2017-01-12 by @gfwilliams This might be what you need? https://github.com/AverageMarcus/pusher-websocket-espruino I'm not sure if Marcus is on the forum or not, but he comes to JSOxford stuff I could probably prod him if you're having problems? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-12 by navas thanks for the quick response, much appreciated. I will give it try and let you know. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-18 by navas I tried downloading the Pusher.js from GitHub and put it in the sandbox directory, then I uploaded the code from right-hand side of the IDE, but still getting following error,
Can anyone help?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-18 by @gfwilliams Try |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-18 by navas Hi @gordon, thanks for the quick response, that helps but now I am getting a different error message, Any ideas?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-18 by @gfwilliams I think you might have to ask Marcus who wrote it - maybe file an issue on the Github page? Looks to me like it's failing here: https://github.com/AverageMarcus/pusher-websocket-espruino/blob/master/pusher.js#L89 It's expecting data from the WebSocket 'open' handler, but the handler will never supply any data. I guess it's possible that he modified the websocket code and never committed his changes. However: you could try just deleting these 3 lines? https://github.com/AverageMarcus/pusher-websocket-espruino/blob/master/pusher.js#L88-90 Thst might fix it |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-18 by navas You are awesome! That fixed it! Thank you so much @gordon.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-12 by navas
Does any one knows how to integrate pusher.com client to espruino ?
https://pusher.com/docs/
All help is Appreciated.
Navas
Beta Was this translation helpful? Give feedback.
All reactions