Azolo / websockex

An Elixir Websocket Client
MIT License
515 stars 97 forks source link

handle_cast not working? #127

Open manast opened 1 year ago

manast commented 1 year ago

I have tried all possible ways but I am not able to get the handle_cast callback to be called. Not even using the Echo example.

  def handle_cast({:send, {type, msg} = frame}, state) do
    Logger.info("Sending #{type} frame with payload: #{msg}")
    {:reply, frame, state}
  end

This mimics the example code shown in the README, but nothing, it is just ignored, what could be the issue?

Btw, the echo server is no longer available...