Errors sent over the errC channels in WsServer and WsClient are currently basic errors.
In some cases errors should be structs, containing some additional info, such as:
client ID
operation? (ping, write, close, ...)
Any struct will still be sent as an error, therefore not breaking the API. Channel consumers, however, may optionally perform type assertion and access the additional info.
Follow-up to #40
Errors sent over the
errC
channels inWsServer
andWsClient
are currently basic errors.In some cases errors should be structs, containing some additional info, such as:
Any struct will still be sent as an error, therefore not breaking the API. Channel consumers, however, may optionally perform type assertion and access the additional info.