import WebSocketReadyState from './WebSocketReadyState' ; /** Adapter for WebSocket implementations */ export default interface WebSocketAdapter { param url param protocols param isSignedUrl create ( url , protocols , isSignedUrl ? ) : void ; param send returns send ( message ) : boolean ; /**
     * Close the WebSocket connection.
     */ close ( code ? , reason ? ) : void ; /**
     * Destroys internal reference to the WebSocket.
     */ destroy ( ) : void ; param handler param eventListener addEventListener ( handler , eventListener ) : void ; returns readyState ( ) : WebSocketReadyState ; }