• Solly Ross's avatar
    Cleanup: WebSocket Helper · 2cccf753
    Solly Ross authored
    File: websock.js
    Tests Added: True
    Changes:
    - Cleaned up JSHint errors
    - Converted to normal JS constructor pattern with "private" fields and
      methods now simply being prepended by underscores
    - Added a "bind" polyfill for use in PhantomJS 1.x in util.js
    - Added FakeWebSocket to fill in for actual WebSocket objects when
      testing
    - Made exception handler actually log exception name and message,
      to console, in addition to stack trace
    2cccf753
fake.websocket.js 2.61 KB