Determine ws event frame type.

To determine the websocket frame type you can use the following comparisons:

  • instanceof ArrayBuffer
  • instanceof Blob
  • typeof === "string"


Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.