Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function* handleWs() {
- const channel = yield call(createSocketChannel, ws);
- while (true) {
- const { endpoint, payload } = yield take(channel);
- yield put({ type: endpoint, payload });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement