added http handler.

This commit is contained in:
5elenay
2021-08-20 21:12:41 +03:00
parent a3cf0d8e4e
commit 14ee6319cc
4 changed files with 63 additions and 11 deletions

16
client.go Normal file
View File

@@ -0,0 +1,16 @@
package revoltgo
import (
"github.com/sacOO7/gowebsocket"
)
const (
WS_URL = "wss://ws.revolt.chat"
API_URL = "https://api.revolt.chat"
)
// Client struct
type Client struct {
Token string
Socket gowebsocket.Socket
}