suri-framework/trail

Fix Sock handlers to return a state

Open

#1 建立於 2024年1月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)OCaml (9 fork)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

Star
 (44 star)
PR 合併指標
 (PR 指標待抓取)

描述

Currently they don't, and they should be closer to the return values used by Elixir's WebSock.ex:

@type handle_result() ::
  {:push, messages(), state()}
  | {:reply, term(), messages(), state()}
  | {:ok, state()}
  | {:stop, {:shutdown, :restart} | term(), state()}
  | {:stop, term(), close_detail(), state()}
  | {:stop, term(), close_detail(), messages(), state()}

Implementation notes

We can start with just push, ok, and stop.

貢獻者指南