1
0
Fork 0
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:
Kane York 2015-10-25 00:58:05 -07:00
parent 2a6c36bba5
commit d4afc3c4c7
2 changed files with 35 additions and 0 deletions

View file

@ -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
}