1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

include iris version, build time & revision to the startuplog when enabled

This commit is contained in:
kataras
2022-05-04 13:52:51 +03:00
parent 3b95c85d3d
commit e42cd43271
6 changed files with 242 additions and 13 deletions

View File

@@ -5,7 +5,6 @@ package main
import (
"fmt"
"log"
socketio "github.com/googollee/go-socket.io"
"github.com/kataras/iris/v12"
@@ -13,10 +12,7 @@ import (
func main() {
app := iris.New()
server, err := socketio.NewServer(nil)
if err != nil {
log.Fatal(err)
}
server := socketio.NewServer(nil)
server.OnConnect("/", func(s socketio.Conn) error {
s.SetContext("")
fmt.Println("connected:", s.ID())