Questions tagged [emit]

Emit is a Python library for realtime data processing.

Emit is a Python library for realtime data processing. It can distribute work with Celery or RQ, coordinate execution in other languages, and let you swing from the trees of your graph with Tarzan-like precision.

387 questions
88
votes
3 answers

Pass data from child to parent in Vuejs (is it so complicated?)

I have read about it: vuejs update parent data from child component https://forum.vuejs.org/t/passing-data-back-to-parent/1201/2 The concept is the same, I need to pass a data object from child to parent. I have used $emit to pass data to parent…
Sommer
  • 1,328
  • 2
  • 10
  • 20
54
votes
2 answers

Is socket.io emit callback appropriate?

Recently I have been messing around with socket.io and found this interesting thing, that I can have emit function callback like this. I start emitting on client side like this: client.emit('eventToEmit', dataToEmit, function(error, message){ …
antanas_sepikas
  • 5,644
  • 4
  • 36
  • 67
26
votes
4 answers

What does "emit" mean in general computer science terms?

I just stumbled on what appears to be a generally-known compsci keyword, "emit". But I can't find any clear definition of it in general computer science terms, nor a specific definition of an "emit()" function or keyword in any specific programming…
JDS
  • 1,869
  • 1
  • 15
  • 17
19
votes
2 answers

throws ERROR TypeError: Cannot read property 'emit' of undefined

In MyComponent, I am trying to emit another event from an event handler. (This new event will be used by the parent component to take a few actions). I created an event emitter as a member of MyComponent, but the event handler method is not able to…
Sonu Mishra
  • 1,659
  • 4
  • 26
  • 45
19
votes
4 answers

Qt - emit a signal from a c++ thread

I want to emit a signal from a C++ thread (std::thread) in Qt. How can I do it?
16
votes
3 answers

What is `emit` javascript function?

While looking through sax nodejs module, i saw multiple emit function calls, but i can't find any information about it. Is it some V8 native tool for emitting events? Why sax-js do not use EventEmitter for streams then?
avasin
  • 9,186
  • 18
  • 80
  • 127
15
votes
3 answers

TypeError: instance[output.propName].subscribe is not a function

I'm trying to emit a event from child to parent component. Parent: parent.ts onChangeUpload(event){ console.log('event'); console.log(event); } Child: @Output() uploadEmit:…
user3516604
  • 347
  • 3
  • 9
13
votes
2 answers

Vue.js - emit to update array not working

I have two components: Parent and Child. The Parent has an array of cars the Child is supposed push objects the cars array. My problem is that my Child component turns cars into an object, instead of pushing an object into the cars array. My Parent…
John Grayson
  • 1,378
  • 3
  • 17
  • 30
13
votes
2 answers

QtRuby emit does not work

Platform: Darwin *-*s-MacBook-Pro.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 Ruby: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2] (installed by rvm) Qt:…
user2201409
  • 131
  • 2
12
votes
3 answers

AngularJS event propagation--siblings?

I understand that $emit sends messages up the DOM tree, and $broadcast sends messages down. What about sending messages between sibling DOM elements—how do I do that?
core
  • 32,451
  • 45
  • 138
  • 193
11
votes
1 answer

EventEmitter emit is not working in angular 4

here is my code below : search.component.html search.component.ts import { Component, Directive, OnInit, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'search-component', …
Chandru
  • 10,864
  • 6
  • 38
  • 53
11
votes
2 answers

How to emit event in mongoose middleware?

I want to emit event when new blog saved blog.post('save',function(blog){ this.emit('newBlog',blog) }) and somewhere else in my project say app.js can listen this event EventEmitter = require('events').EventEmitter; emitter = new…
paynestrike
  • 4,348
  • 14
  • 46
  • 70
10
votes
1 answer

VueJS: Why Trigger 'Input' Event Within 'Input' Event Handler?

I'm learning VueJS. I'm figuring out their currency validation example code. Vue.component('currency-input', { template: ` $
Jay
  • 740
  • 4
  • 8
  • 19
10
votes
2 answers

scope.$on is not working when created inside a directive

I have created a directive for my application which is mentioned in the following question How do you serve a file for download with AngularJS or Javascript? Directive code is as like below appModule.directive('fileDownload', function…
Kanagu
  • 606
  • 3
  • 9
  • 17
9
votes
4 answers

How to emit events with a strictly typed payload? | Vue 3 Composition API + TypeScript

I am trying to learn Vue 3 Composition API with TypeScript, specifically how to emit events with a strictly typed payload. I have an example below but i'm not sure if it is the correct way. So my question is if there are any other methods to emit…
AlbinR
  • 396
  • 3
  • 8
1
2 3
25 26