ksysoev / wasabi

Toolkit for Creating WebSocket API Gateways
MIT License
4 stars 2 forks source link

"Handle connection closed errors in Send method" #104

Closed ksysoev closed 6 days ago

ksysoev commented 6 days ago

This pull request adds error handling to the Send method in order to handle connection closed errors. If the error is a syscall.EPIPE or net.ErrClosed error, it returns a specific error message indicating that the connection has been closed.