• Joel Martin's avatar
    tcp-client.js: read/write arraybuffer. Read/disconnect handling. · 815bb7d7
    Joel Martin authored
    - enable sending and receiving of raw array buffers in addition to
      strings.
    
    - add a read poll interval and set it to 15ms by default to detect
      and handle quickly when a message is pending.
    
    - also, detect a disconnected state and add call registration for
      disconnect events.
    815bb7d7
tcp-client.js 9.15 KB