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.

334 questions
52
votes
3 answers

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

Thanks for reading my question. 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…
Sommer
  • 928
  • 2
  • 7
  • 18
47
votes
1 answer

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,204
  • 4
  • 30
  • 60
20
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,409
  • 11
  • 16
16
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?
14
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
  • 327
  • 2
  • 8
14
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,479
  • 3
  • 25
  • 41
13
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
  • 7,370
  • 11
  • 69
  • 116
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
  • 30,054
  • 41
  • 131
  • 189
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
  • 9,360
  • 3
  • 32
  • 50
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
  • 3,324
  • 14
  • 42
  • 69
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
  • 2
  • 8
  • 17
9
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
  • 772
  • 3
  • 9
  • 19
9
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
  • 538
  • 3
  • 7
  • 15
9
votes
1 answer

socket io emit failed callback

Is there any way to know socket io emit failed and success, something like ajax callback methods: onSuccess, onError? For socket io emit i only find: socket.emit('publish', {message:'test message'},function (data) { alert("")}) This callback…
fcbflying
  • 623
  • 1
  • 6
  • 19
1
2 3
22 23