package
0.102.7
Repository: https://github.com/issue9/web.git
Documentation: pkg.go.dev

# Functions

NewServer 将 [Server] 注册为 [web.Server.Services] 服务并返回 retry 表示反馈给用户的 retry 字段,可以为零值,表示不需要输出该字段; keepAlive 表示心跳包的发送时间间隔,如果小于等于零,表示不会发送; bufCap 每个 SSE 队列可缓存的数据,超过此数量,调用的 Sent 将被阻塞; desc 对该 SSE 服务的描述;.
OnMessage 对消息的处理 l 用于记录运行过程的错误信息; msg 用于接收从服务端返回的数据对象。 从 msg 中取出的 [Message] 对象,在不再需要时可以调用 [Message.Free] 回收; NOTE: 提交的请求中会将 Accept 报头设置为 [Mimetype],服务端需要能正确处理该值才行。.

# Constants

Mimetype sse 请求从服务端返回给客户端的内容类型.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author