Websocket client

Posted on
  • I am using the websocket client on a WEMOS board where i could establish a connection to my nodejs server. However the documentation on espruino is very basic. I could not find a reference and i am missing calls to close a connection and events to react on closing the connection from the server or a disconnect due to a network failure.

    Is there some reference for these calls or is it still under development?

  • Hi @user94507

    Is there some reference for these calls or is it still under development?

    have you checked this page?

  • Yes of course, with this I made the connection. But it's missing the calls I mentioned in the post.

  • If you go direct to the module code you can appraise what calls are available - and also use as basis for modifying if not suit your need.

    http://www.espruino.com/modules/ws.js

  • Many thanks! This changes everything. I did'nt found this resource before.

    Thomas

  • Great, just let me add that most module documentations have a link to the source code ;-)


    1 Attachment

    • Bildschirmfoto 2019-01-10 um 16.41.04.jpg
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Websocket client

Posted by Avatar for fanThomas @fanThomas

Actions