(frame []byte, conn *tls.Conn)
| 329 | } |
| 330 | |
| 331 | func SendCustomFrame(frame []byte, conn *tls.Conn) error { |
| 332 | |
| 333 | if conn == nil { |
| 334 | return fmt.Errorf("connection is nil") |
| 335 | } |
| 336 | |
| 337 | _, err := conn.Write(frame) |
| 338 | if err != nil { |
| 339 | return err |
| 340 | } |
| 341 | return nil |
| 342 | } |
| 343 | |
| 344 | func sendMagicReq(conn *tls.Conn) error { |
| 345 |
no outgoing calls
no test coverage detected