Questions tagged [hook.io]

hook.io is a versatile distributed event emitter built with node.js hooks are nodes which can seamlessly work together across any device or network to create self-healing meshes of i/o

hook.io is a versatile distributed event emitter built with node.js

hooks are nodes which can seamlessly work together across any device or network to create self-healing meshes of i/o

Features :

  • Build applications intelligently by combining together small hook actors
  • Rapidly compose new functionality in a distributed and organized way
  • Dead simple Interprocess Communication built on-top of node's native EventEmitter class
  • Supports a large amount of common i/o sources out of the box
  • Additional i/o support from a rich community and network of user-created hook libraries
  • Built-in auto-discovery systems using http, tcp, mdns, and hnet
  • Hooks can exist on any device that supports JavaScript (cross-browser support via socket.io)
  • Seamlessly manages the spawning and daemonizing additional hooks
  • Legacy applications can easily be extended to work with hook.io
8 questions
4
votes
2 answers

How to return both immediate and delayed response to slack slash command?

I'm trying to use a hook.io microservice to make a slack slash command bot. According to the docs I should be able to send an immediate response then a seperate POST later. But I cant get the immediate response and the later POST to both…
rw950431
  • 115
  • 1
  • 9
3
votes
3 answers

How to message between CPU Cores in Node?

I have an application that I'm working on that needs to sync a timer between multiple cores (using cluster). Is there an efficient reliable way that I can communicate between cores? I've looked at Redis, but that seems to be more geared towards…
Eric Clifford
  • 223
  • 3
  • 8
2
votes
0 answers

Getting POST data from Telegram bot with Python on Hook.io

I am trying to make a simple echo bot on Telegram with Python, hosted as a microservice on hook.io. Problem: Cannot parse the POST data from the Hook object. I tried the JavaScript method from here in another bot, worked fine. Tried to make the same…
cogito404
  • 21
  • 3
1
vote
1 answer

running Hook.io on a different port

I tried to run hook.io with a different port, which killed the autodiscover features of the clients. But when I try to create the clients with the same port, they get an error. Sever: var oHook = hookio.createHook( { 'name' :'dispatch-hook', …
K..
  • 4,044
  • 6
  • 40
  • 85
1
vote
2 answers

Hook.io on Heroku

I am creating a Node.js app on Heroku and have run into an issue. I am trying to use Hook.io in my application but am getting a "Bad Bind" error from Heroku because Hook uses port 5000. Does anyone know of a way around this, maybe by somehow telling…
kbjr
  • 1,254
  • 2
  • 10
  • 22
0
votes
1 answer

Parsing JSON url in pure javascript

I'm trying to parse a url in pure javascript, just one executable file. url = 'http://myurl.php?format=json' var request = new XMLHttpRequest(); request.open('GET', url, true); request.onload = function() { if (request.status >=…
Imalea
  • 376
  • 5
  • 14
0
votes
2 answers

Access JSON data in Python

header = {'Content-type': 'application/json','Authorization': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' } url = 'https://sandbox-authservice.priaid.ch/login' response = requests.post(url, headers = header, verify=False).json() token =…
0
votes
1 answer

Alternative way to write cUrl in PHP

I am trying to create a service on hook.io to load token from another API. public function loadToken() { $computedHash = base64_encode(hash_hmac ( 'md5' , $this->authServiceUrl , $this->password, true )); …