Skip to content

v2.1.0

Compare
Choose a tag to compare
@isaacgr isaacgr released this 19 Jul 02:36
· 77 commits to master since this release

Release Notes

  • fix websocket .end() methods
    • no longer returns a promise
    • ws client.end() method accepts a message and code
    • tcp client.end() method accepts a callback
  • add 'connected' attribute to tcp and ws clients
  • remove process.stdout.write call from ws browser client

Commits

  • Allow console.log in eslint rules. Remove process.stdout.write and replace with console.log. Remove process.stdout.write from ws browswer client. b1430a0
  • Merge pull request #66 from isaacgr/dependabot/npm_and_yarn/lodash-4.17.19 d6341cb
  • Merge pull request #63 from isaacgr/bugfix/#62/websocket_end_doesnt_work 20915ad
  • Bump lodash from 4.17.14 to 4.17.19 5a54b32
  • Add a "connected" class attribute for tcp and ws clients. 87e92cb
  • Merge branch 'master' into bugfix/#62/websocket_end_doesnt_work 7bfc9a6
  • Add newline to stdout print. 1492bff
  • Update docs with description of tcp .end() method 0655d60
  • Move .end() from base class to tcp subclass. Add optional callback parameter. 34b1242
  • Add rule to allow underscores before variable names. 53baed0
  • Update readme for both ws clients. Refs #62. 2f4965c
  • Add private method to indicate that the client closed the connection with the .end method. Prevents the reconnect attempt. Refs #62. 2a6383f
  • Remove promise from client.end() ad5eb5b
  • Add client.end() to the README. 7dfcc7b
  • Dont use a promise for client end methods since its unnecessary. Aligns with the ws methods now. 33b30e6
  • Include code and reason with browswer ws client end method. Refs #62. 2b939c8
  • Hardcode connection retry timeouts to 5s to lineup with other clients. Refs #62. b446fe0
  • Remove uneccessary newline in console.log. Fix linting errors. Refs #62. bb14a38
  • Fix websocket connect and end/close methods. Refs #62. 60f80d2