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.

贡献者指南