Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldConnect (0.14 sec)

  1. internal/grid/connection.go

    	}
    	if o.local == o.remote {
    		panic("equal hosts")
    	}
    	if c.shouldConnect() {
    		c.side = ws.StateClientSide
    
    		go func() {
    			if o.blockConnect != nil {
    				<-o.blockConnect
    			}
    			c.connect()
    		}()
    	}
    	if debugPrint {
    		fmt.Println(c.Local, "->", c.Remote, "Should local connect:", c.shouldConnect(), "side:", c.side)
    	}
    	if debugReqs {
    		fmt.Println("Created connection", c.String())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top