iH
Size: a a a
iH
V
F
V
F
V
F
import WebSocket from 'ws';
import {
createEvent,
createStore,
createEffect,
Event,
Effect,
} from 'effector';
import http from 'http';
import { nanoid } from 'nanoid';
let socketCollection: { [id: string]: WebSocket.Server } = {};
export const $socketMessage = createStore<Send | {}>({});
export const sendFx: Effect<
{
result:
| {
finalTweets: Array<FinalTweet>;
meanSentiment: number;
minCoefficient: FinalTweet;
maxCoefficient: FinalTweet;
tweetsType: 'top' | 'latest';
}
| NormalizedProfileInfo;
id: string;
},
any
> = createEffect();
S
import WebSocket from 'ws';
import {
createEvent,
createStore,
createEffect,
Event,
Effect,
} from 'effector';
import http from 'http';
import { nanoid } from 'nanoid';
let socketCollection: { [id: string]: WebSocket.Server } = {};
export const $socketMessage = createStore<Send | {}>({});
export const sendFx: Effect<
{
result:
| {
finalTweets: Array<FinalTweet>;
meanSentiment: number;
minCoefficient: FinalTweet;
maxCoefficient: FinalTweet;
tweetsType: 'top' | 'latest';
}
| NormalizedProfileInfo;
id: string;
},
any
> = createEffect();
F
V
F
V
V
V
V
W
F
F
F
F