mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-11 07:40:57 +00:00
store data from emoticon_uses command
This commit is contained in:
parent
2a6c36bba5
commit
d4afc3c4c7
2 changed files with 35 additions and 0 deletions
|
@ -21,6 +21,7 @@ type Config struct {
|
|||
UseSSL bool
|
||||
|
||||
SocketOrigin string
|
||||
BackendUrl string
|
||||
}
|
||||
|
||||
// A command is how the client refers to a function on the server. It's just a string.
|
||||
|
@ -96,6 +97,8 @@ func SetupServer(config *Config) *websocket.Server {
|
|||
sockServer := &websocket.Server{}
|
||||
sockServer.Config = *sockConf
|
||||
sockServer.Handler = HandleSocketConnection
|
||||
|
||||
SetupBackend(config.BackendUrl)
|
||||
return sockServer
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue