Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocket ¶
type WebSocket struct {
//canal de entrada nuevas solicitudes.
REQUESTS_IN chan *model.Request
// canal salida de solicitudes
REQUESTS_OUT chan *model.Request
// canal que avisa el cierre de las conexiones
CLOSED_CONNECTION chan *model.User
cutkey.Add
// contains filtered or unexported fields
}
concentrador de solicitantes para websocket
func New ¶
func New(models *[]model.Object, buffer_size, concurrency_max int, allowed_origins ...string) *WebSocket
models mapa con los modelos de objetos que utiliza el sistema allowed_origins ej: "http://localhost", "http://127.0.0.1", "http://example.com", "https://example.com" buffer_size ej: 1024 concurrency_max Limitar la concurrencia de conexiones simultáneas ej 100
func (*WebSocket) StartBroadcasting ¶
func (*WebSocket) UserRemove ¶
Click to show internal directories.
Click to hide internal directories.