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 escucha de solicitudes nuevas.
NEW_INCOMING_REQUESTS chan *model.Request
// canal difusión de trabajos pendientes
BROADCAST_RESPONSES chan *model.Request
// canal para cerrar gorutinas en testing
DONE chan bool
// contains filtered or unexported fields
}
concentrador de solicitantes para websocket
func New ¶
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) ApplicantAdd ¶
func (*WebSocket) ApplicantRemove ¶
Click to show internal directories.
Click to hide internal directories.