SEAPUNK / socketeer

yet another websocket framework
MIT License
3 stars 0 forks source link

Browser checking & builds #54

Closed SEAPUNK closed 8 years ago

SEAPUNK commented 8 years ago

For browser builds, I think I will add another class, called BrowserClient, that will be nothing but:

class BrowserClient extends Client {
  constructor () {
    super.apply(this, arguments)
    this.isBrowser = true
  }
}

or something similar. It will let Client and ClientAbstract know when functions can utilize certain features.

For browser builds, I might have Webpack use UMD.

SEAPUNK commented 8 years ago

Added experimental support, will build upon it: 84ce72d45dda9bc0af0957ba036c50b9a9789d05