package
0.0.0-20241029013314-06af37cb7d44
Repository: https://github.com/rogue-syntax/rs-goapiserver.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
send a message user(s) []int{1,2,3} will send the message to users with user_id 1, 2, and 3.
No description provided by the author
No description provided by the author
No description provided by the author
The managing goroutine function This function manages the websockets, and is called by the main server It listens for requests on the wsChannel, and acts on them The requests are of type WebSocketChanReq The function manages the connections of the users.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetChannel allows other packages to set the wsChannel.
No description provided by the author
return a simple message to the user who calls this endpoint.
No description provided by the author
call this endpoint to establish a websocket connection.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
simple error response type from apierrorkeys.
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
No description provided by the author
keys for interpreting the response data.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

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

# 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
Operation request struct.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
UserSocketType is a map of user_id to their connections.
No description provided by the author
No description provided by the author
No description provided by the author
WebSocketChanRespType is a type for the response type of the websocket channel.