Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 657 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 657 Bytes

SimpleTcp

Installation

If available in Hex, the package can be installed as:

  1. Add simple_tcp to a list of dependencies in mix.exs:
  [{:simple_tcp, git: "https://github.com/VladimirMikhailov/elixir_simple_tcp.git"}
  1. Ensure simple_tcp is started:
def application do
  [
    extra_applications: [:logger, :simple_tcp]
  ]
end

Run

  1. Run iex -S mix

  2. Connect by telnet client: telnet localhost 8000

Commands

Channels and the app don't store any information and messages get spread only to connected clients.

/c NEW ROOM - Connect to a channel