UNPKG

omelop

Version:

[![Build Status](https://travis-ci.org/node-omelop/omelop.svg?branch=master)](https://travis-ci.org/node-omelop/omelop)

31 lines (25 loc) 563 B
import { omelop } from 'omelop'; import { preload } from './preload'; /** * 替换全局Promise * 自动解析sourcemap * 捕获全局错误 */ preload(); /** * Init app for client. */ let app = omelop.createApp(); app.set('name', '$'); // app configuration app.configure('production|development', 'connector', function () { app.set('connectorConfig', { connector: omelop.connectors.hybridconnector, heartbeat: 3, useDict: true, useProtobuf: true }); }); // start app app.start();