Merge pull request #576 from benjamin-rood/patch-1
corrected reference to net/x/websockets package.
This commit is contained in:
@@ -48,7 +48,7 @@ The Go standard library does not support WebSockets. However the `websocket` pac
|
||||
|
||||
Use `go get` to install this package:
|
||||
|
||||
go get code.google.com/p/go.net/websocket
|
||||
go get golang.org/x/net/websocket
|
||||
|
||||
WebSockets have both client and server sides. Let's see a simple example where a user inputs some information on the client side and sends it to the server through a WebSocket, followed by the server pushing information back to the client.
|
||||
|
||||
@@ -107,7 +107,7 @@ Server code:
|
||||
package main
|
||||
|
||||
import (
|
||||
"code.google.com/p/go.net/websocket"
|
||||
"golang.org/x/net/websocket"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
Reference in New Issue
Block a user