Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lafikl committed Jan 19, 2015
1 parent 6d64c98 commit 66eba8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
# Socknet
# Telsocket
Telnet-like for WebSockets

```
go get github.com/lafikl/socknet
```
Then cd to the directory and type
```
go install
```

voila you got a binary that can speak websockets!

http://telsocket.org
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ var url = flag.String("url", "", "-url ws://127.0.0.1")

func main() {
flag.Parse()
if *url == "" {
log.Fatal("URL can't be empty.")
}
done := make(chan bool)
c := NewClient(*url)

go func() {
for {
_, r, err := c.ReadMessage()
Expand Down

0 comments on commit 66eba8a

Please sign in to comment.