• Felix Lange's avatar
    rpc, p2p/simulations: use github.com/gorilla/websocket (#20289) · 7c4a4eb5
    Felix Lange authored
    * rpc: improve codec abstraction
    
    rpc.ServerCodec is an opaque interface. There was only one way to get a
    codec using existing APIs: rpc.NewJSONCodec. This change exports
    newCodec (as NewFuncCodec) and NewJSONCodec (as NewCodec). It also makes
    all codec methods non-public to avoid showing internals in godoc.
    
    While here, remove codec options in tests because they are not
    supported anymore.
    
    * p2p/simulations: use github.com/gorilla/websocket
    
    This package was the last remaining user of golang.org/x/net/websocket.
    Migrating to the new library wasn't straightforward because it is no
    longer possible to treat WebSocket connections as a net.Conn.
    
    * vendor: delete golang.org/x/net/websocket
    
    * rpc: fix godoc comments and run gofmt
    7c4a4eb5
Name
Last commit
Last update
..
discover Loading commit data...
discv5 Loading commit data...
dnsdisc Loading commit data...
enode Loading commit data...
enr Loading commit data...
nat Loading commit data...
netutil Loading commit data...
simulations Loading commit data...
testing Loading commit data...
dial.go Loading commit data...
dial_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
util.go Loading commit data...
util_test.go Loading commit data...