chat

package
v0.0.0-...-35669d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthWebSocket

func AuthWebSocket(c *websocket.Conn)

Authorizing Websockets , detaching from the chat selection Makign it more efficient

func ChatConnection

func ChatConnection(c *websocket.Conn)

Will be phased out in a future release

Please use chat v2 for better websocket chats.

func CreateChat

func CreateChat(c *fiber.Ctx, claims *jwt.RegisteredClaims) error

func GetChats

func GetChats(c *fiber.Ctx, claims *jwt.RegisteredClaims) error

func GetSocketUpgrade

func GetSocketUpgrade(c *fiber.Ctx) error

func HubRunner

func HubRunner()

func UpdateChat

func UpdateChat(c *fiber.Ctx, claims *jwt.RegisteredClaims) error

Types

type Hub

type Hub struct {
	// contains filtered or unexported fields
}

func (*Hub) Run

func (h *Hub) Run()

type Hubs

type Hubs struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL