Skip to content

tonychanczm/wsconn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebsocketConnection

将websocket.Conn转换为net.Conn!

// 没错,就只有这个
func NewWSConn(conn *websocket.Conn) net.Conn 
// 调用 Close() error 方法会自动发送 close message
// 调用 ForceClose() error 则不会

About

将websocket.Conn转换为net.Conn!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages