add Connection.mli

This commit is contained in:
tali 2024-01-31 18:43:59 -05:00
parent b113247f48
commit 0470cb85d0
1 changed files with 15 additions and 0 deletions

15
lib/server/connection.mli Normal file
View File

@ -0,0 +1,15 @@
open Irc
type t
val make :
router:Router.t ->
server_info:Server_info.t ->
addr:Unix.sockaddr ->
t
val close : ?reason:string -> t -> unit
val outbox : t -> Outbox.t
val on_msg : t -> Msg.t -> unit
val on_ping : t -> (unit, unit) result