wabbit v0.4.0 Wabbit.Connection View Source

Link to this section Summary

Functions

Closes a connection

Opens a new channel

Stops a connection

Link to this section Functions

Closes a connection

Opens a new channel

Link to this function start_link(connection_options \\ [], options \\ []) View Source

Starts a new connection

Connection Options

  • :username - Default is "guest"
  • :password - Default is "guest"
  • :virtual_host - The name of the virtual host to work with. Default is "/"
  • :host - Server host name or address. Default is "localhost"
  • :port - Default is :undefined
  • :channel_max - The maximum total number of channels that the client will use per connection. Default is 0
  • :frame_max - The largest frame size that the client and server will use for the connection. Default is 0
  • :heartbeat - The delay, in seconds, of the connection heartbeat that the client wants. Default is 0
  • :connection_timeout - Default is :infinity
  • :ssl_options - Default is :none
  • :client_properties - Default is []
  • :socket_options - Default is []
  • :auth_mechanisms - A list of the security mechanisms that the server supports. Default is [&:amqp_auth_mechanisms.plain/3, &:amqp_auth_mechanisms.amqplain/3]

Options

See GenServer.start_link/3 for more information.

Stops a connection