package controllers import ( "code.google.com/p/go.net/websocket" "fmt" "github.com/robfig/revel" ) type App struct { *revel.Controller } func (c App) Index() revel.Result { return c.Render()} func (c App) Feed(ws *websocket.Conn) revel.Result { fmt.Println("hi") message := "hello" websocket.Message.Send(ws, message) return nil } ~ The website can connect and disconnect. But can't get "hello" from html page.