Permalink
Switch branches/tags
Commits on Sep 22, 2010
  1. Compatibility with SocketIO

    pclifford authored and pgriess committed Sep 22, 2010
    The data for the onmessage event needs to match the MessageEvent interface:
    http://dev.w3.org/html5/websockets/#feedback-from-the-protocol
    
    ... which is defined here:
    http://www.whatwg.org/specs/web-apps/current-work/#event-definitions-0
    
    This is the smallest possible change to make it work with SocketIO
Commits on Aug 25, 2010
  1. Add 'opts' param to WebSocket(); set Origin hdr.

    pgriess committed Aug 25, 2010
    Closes #2
    
    - Fix inspired by nick@quaran.to.
Commits on Aug 9, 2010
Commits on Aug 8, 2010
  1. Handle 0-length buffers.

    pgriess committed Aug 8, 2010
    - Work around behavioral differences in different NodeJS versions with respect
      0-length buffers. Explicitly avoid attempting a copy() unless we're going
      to be operating on > 0 bytes.
    - Change 'error' event to 'wserror' to avoid EventEmitter throwing an error.
Commits on Aug 5, 2010
Commits on Jul 22, 2010
Commits on Jul 13, 2010
  1. Some fixes to lo-byte parser

    pgriess committed Jul 13, 2010
    - The lo-byte parser would incorrectly call buf.copy() with an offset at
      the end of the target buffer and a length of 0. Though this is
      theoretically a no-op, Buffer.copy() is doing bounds-checking on the
      source before taking the length into account.
    - Clear bufs[] and bufBytes when consuming partial buffer.
Commits on Jul 6, 2010
  1. Bump version number.

    pgriess committed Jul 6, 2010
Commits on Jun 30, 2010
Commits on Jun 29, 2010
  1. Add package.json file.

    pgriess committed Jun 29, 2010
Commits on Jun 21, 2010
  1. Test a server-sent message.

    pgriess committed Jun 21, 2010
Commits on Jun 19, 2010
Commits on Jun 18, 2010
  1. Add a unit test.

    pgriess committed Jun 18, 2010
Commits on Jun 17, 2010