NextReader returns the next data message received from the peer. The returned messageType is either TextMessage or BinaryMessage.

There can be at most one open reader on a connection. NextReader discards the previous message if the application has not already consumed it.

The NextReader method and the readers returned from the method cannot be accessed by more than one goroutine at a time.

NextReader is referenced in 0 repositories