@@ -158,9 +158,6 @@ func (c *Conn) timeoutLoop() {
158
158
// Context returns a context derived from parent that will be cancelled
159
159
// when the connection is closed or broken.
160
160
// If the parent context is cancelled, the connection will be closed.
161
- //
162
- // This is an experimental API.
163
- // Please let me know how you feel about it in https://github.com/nhooyr/websocket/issues/79
164
161
func (c * Conn ) Context (parent context.Context ) context.Context {
165
162
select {
166
163
case <- c .closed :
@@ -542,9 +539,6 @@ func (c *Conn) SetReadLimit(n int64) {
542
539
//
543
540
// See the Reader method if you want to be able to reuse buffers or want to stream a message.
544
541
// The docs on Reader apply to this method as well.
545
- //
546
- // This is an experimental API, please let me know how you feel about it in
547
- // https://github.com/nhooyr/websocket/issues/62
548
542
func (c * Conn ) Read (ctx context.Context ) (MessageType , []byte , error ) {
549
543
typ , r , err := c .Reader (ctx )
550
544
if err != nil {
@@ -586,9 +580,6 @@ func (c *Conn) writer(ctx context.Context, typ MessageType) (io.WriteCloser, err
586
580
//
587
581
// See the Writer method if you want to stream a message. The docs on Writer
588
582
// regarding concurrency also apply to this method.
589
- //
590
- // This is an experimental API, please let me know how you feel about it in
591
- // https://github.com/nhooyr/websocket/issues/62
592
583
func (c * Conn ) Write (ctx context.Context , typ MessageType , p []byte ) error {
593
584
err := c .write (ctx , typ , p )
594
585
if err != nil {
@@ -810,9 +801,6 @@ func init() {
810
801
811
802
// Ping sends a ping to the peer and waits for a pong.
812
803
// Use this to measure latency or ensure the peer is responsive.
813
- //
814
- // This API is experimental.
815
- // Please provide feedback in https://github.com/nhooyr/websocket/issues/1.
816
804
func (c * Conn ) Ping (ctx context.Context ) error {
817
805
err := c .ping (ctx )
818
806
if err != nil {
0 commit comments