UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

13 lines (9 loc) 257 B
var ws = null if (typeof WebSocket !== 'undefined') { ws = WebSocket } else if (typeof MozWebSocket !== 'undefined') { ws = MozWebSocket } else if (typeof window !== 'undefined') { ws = window.WebSocket || window.MozWebSocket } module.exports = ws