Show HN: A golang websocket server you can pipe to
github.com
github.com
> cat /usr/share/dict/words | ./pipesock 2013/06/01 22:35:59 Read Line Error: EOF 2013/06/01 22:35:59 Read Line Error: EOF 2013/06/01 22:35:59 Read Line Error: EOF 2013/06/01 22:35:59 Read Line Error: EOF
This happened when trying to do "y | ./pipesock", amongst other things, perhaps you should silently ignore stuff that isn't streaming in line-based.
FWIW the websocket library now installed, I get a single reading in the html frontend, the first message I broadcast.
Nice idea, needs a lot more work!
ln -s $GOPATH/src/github.com/minikomi/pipesock/default ~/.pipesock
import (
"go/build"
"path/filepath"
)
pkgInfo, err := build.Import("github.com/minikomi/pipesock", "", 0)
if err != nil {
panic(err)
}
webDirPath := filepath.Join(pkgInfo.Dir, "default")