This commit is contained in:
1-6
2023-07-08 23:53:30 -07:00
parent afe3f007c8
commit 72fe831c8d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -111,13 +111,13 @@ func handleWebsocket(c *gin.Context) {
res.conn = wc
req._event = "connect"
wc.conn = ws
function.Handle(&Faker{
go function.Handle(&Faker{
Type: "websocket",
}, func(vm *goja.Runtime) {
vm.Set("res", res)
vm.Set("req", req)
})
// message
time.Sleep(time.Millisecond*500)
for {
_, data, err := ws.ReadMessage()
wc.patterns.Range(func(key, value any) bool {
+1 -1
View File
@@ -80,4 +80,4 @@ func main() {
select {}
}
//
// git add . && git commit -m "x" && git push