Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private handleEvent(event: IStreamingContextPayload): Promise {
const context = new StreamingContext({
vk: this.vk,
payload: event,
state: {},
updateType: 'publication',
source: UpdateSource.WEBSOCKET
});
return this.vk.updates.dispatchMiddleware(context);
}