Skip to content

Commit

Permalink
cleanup NewPP
Browse files Browse the repository at this point in the history
  • Loading branch information
edjafarov committed May 20, 2016
1 parent 916fbbd commit fb31d0e
Show file tree
Hide file tree
Showing 13 changed files with 182 additions and 1,044 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -221,12 +221,11 @@ addItemAction(item) // will pass complete chain
```

###PromisePipe.envTransition(from, to, handler)
Setting transition of a message between environments. `from` and `to` are environments names. For example 'client' and 'server'. `handler` is a function that passes the message to other env and returns a `PromisePipe.promiseMessage(message)`. PromiseMessage is used to watch the call to be back from server.
Setting transition of a message between environments. `from` and `to` are environments names. For example 'client' and 'server'. `handler` is a function that passes the message to other env.

```javascript
PromisePipe.envTransition('client', 'server', function(message){
// here you need to put a logic that sends message to server env
return PromisePipe.promiseMessage(message);
})
```
###PromisePipe.execTransitionMessage(message)
Expand Down Expand Up @@ -282,4 +281,4 @@ There are implemented connectors for [SocketIO](https://github.com/edjafarov/Pro
###PromisePipe.setMode
To set up PromisePipe in debug mode you need to call PromisePipe.setMode('DEBUG'). Then in chrome you will be able to see in console values of arguments passed inside each chain within pipe:

![debuggability promisepipes](http://g.recordit.co/EywOLPXn7v.gif)
![debuggability promisepipes](http://g.recordit.co/EywOLPXn7v.gif)
298 changes: 0 additions & 298 deletions src/NewPromisePipe.js

This file was deleted.

0 comments on commit fb31d0e

Please sign in to comment.