This commit is contained in:
cdle
2023-07-08 12:57:11 +08:00
parent 4bf46badb4
commit 87e6f98876
11 changed files with 133 additions and 71 deletions
+3 -3
View File
@@ -36,7 +36,7 @@ func handleWebsocket(c *gin.Context) {
}
req._event = "connect"
function.Handle(&Faker{
Type: "*",
Type: "websocket",
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)
@@ -63,7 +63,7 @@ func handleWebsocket(c *gin.Context) {
}
}
function.Handle(&Faker{
Type: "*",
Type: "websocket",
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)
@@ -79,7 +79,7 @@ func handleWebsocket(c *gin.Context) {
}
}
function.Handle(&Faker{
Type: "*",
Type: "websocket",
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)