Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websocket can't work when websocket.Message.Send() #197

Closed
yaotian opened this issue Jun 27, 2013 · 1 comment
Closed

websocket can't work when websocket.Message.Send() #197

yaotian opened this issue Jun 27, 2013 · 1 comment

Comments

@yaotian
Copy link

yaotian commented Jun 27, 2013

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.

@yaotian
Copy link
Author

yaotian commented Jun 27, 2013

Please close it. Wrong bug submittion

@robfig robfig closed this as completed Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants