This commit is contained in:
crusader 2018-07-02 15:41:02 +09:00
parent ff0bc61c78
commit 213f4ba8e2
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@loafer/ng-rpc",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "git",
"url": "https://git.loafle.net/loafer/ng.git"

View File

@ -4,9 +4,8 @@ import { WebSocketSubject, WebSocketSubjectConfig } from 'rxjs/webSocket';
import { RPCMessage } from '../../../core/type';
export interface RxWebsocketSubjectConfig<T = RPCMessage> extends WebSocketSubjectConfig<T> {
reconnectInterval?: 5000;
reconnectRetry?: 10;
compressionThreshold?: 1024;
reconnectInterval?: number;
reconnectRetry?: number;
}
const DEFAULT_RX_WEBSOCKET_CONFIG: RxWebsocketSubjectConfig<any> = {
@ -26,7 +25,6 @@ const DEFAULT_RX_WEBSOCKET_CONFIG: RxWebsocketSubjectConfig<any> = {
},
reconnectInterval: 5000,
reconnectRetry: 10,
compressionThreshold: 1024,
};
export class RxWebsocketSubject extends Subject<RPCMessage> {

View File

@ -8,6 +8,9 @@ export * from './lib/client/rwc/websocket/RPCClientWebsocketRWC';
export * from './lib/client/rwc/websocket/RxWebsocketSubject';
export * from './lib/core/error';
export * from './lib/core/token';
export * from './lib/core/type';
export * from './lib/codec/codec';
export * from './lib/codec/compression_codec';
export * from './lib/decorator/rpc-subscriber.decorator';
export * from './lib/protocol/RPCClientCodec';
export * from './lib/protocol/RPCError';