mirai-js
Version:
QQ robot development framework based on Mirai-api-http.
6 lines (5 loc) • 324 B
JavaScript
const { isBrowserEnv } = require('../util/isBrowserEnv');
module.exports = {
wsStartListening: isBrowserEnv() ? require('../core/startListeningBrowser') : require('../core/startListeningNode'),
wsStopListening: isBrowserEnv() ? require('../core/stopListeningBrowser') : require('../core/stopListeningNode'),
};