Spaceboy.Adapter.Ranch (Spaceboy v0.4.0)

View Source

TLS adapter using :ranch library

Summary

Functions

Returns a specification to start this module under a supervisor.

Properly terminate the connection

Send data through the socket

Send file through the socket

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

disconnect(pid)

Properly terminate the connection

send(pid, header, body \\ nil)

Send data through the socket

send_file(pid, header, file)

Send file through the socket