UNPKG

@talend/react-cmf-cqrs

Version:

@talend/react-cmf plugin for CQRS backend architecture

20 lines (19 loc) 730 B
/** * @param socketUrl * @returns {boolean} true if it starts with a WS protocol */ export function isAbsoluteWebSocketUrl(socketUrl: any): boolean; export default createWebsocketMiddleware; /** * select part of the state to create patch between two state * * @param socketUrl {string} url to web socket relay * @param actionListeners {array<function>} function exectuted * on each action going trought this middleware * @param socketListener {array<function>} function executed * on each message send to this ws listenner * * @return {object} result * */ declare function createWebsocketMiddleware(socketUrl: string, actionListeners?: array<Function>, socketListener?: array<Function>, socketOptions?: {}): object;