Files
api/packages/rpc-provider/src/ws/polyfill.ts
T
Jaco Greeff 5ee2caf00e More small readability enhancements (#1296)
* More small readability enhancements

* Pacify CC on manual checks
2019-08-11 22:44:02 +02:00

9 lines
313 B
TypeScript

// Copyright 2017-2019 @polkadot/rpc-provider authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
if (typeof WebSocket === 'undefined') {
// @ts-ignore
global.WebSocket = require('websocket').w3cwebsocket;
}