senecajs / seneca-transport

Seneca micro-services message transport over TCP and HTTP.
MIT License
63 stars 45 forks source link

How to pass internals as options to transport #84

Closed manojktechie closed 8 years ago

manojktechie commented 8 years ago

I am looking for some way to pass internals as options to transport. Default host configured inside internal is 0.0.0.0. But when I am running inside container, it is not working and giving error. When I changed the value to hard coded value of my host, it is working fine. Is there any way to pass host defined inside internal as options.

Regards,

geek commented 8 years ago

@manoj150283 sorry for the long delay in a response...

You can pass any of the options in https://github.com/senecajs/seneca-transport/blob/master/transport.js#L26-L46 when you use the transport plugin from seneca.

Here is an example of changing the check.own_message option.

const Seneca = require('seneca');

const option = { 
  plugin: { 
    transport: { 
      check: { 
        own_message: false 
      }
    } 
  } 
};
const seneca = new Seneca(option);