• Joel Martin's avatar
    tcp-client.js: read/write arraybuffer. Read/disconnect handling. · 8ec3cfaa
    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.
    8ec3cfaa
tcp-client.js 9.15 KB