Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 844746 Details for
Bug 1015610
Websocket is not working with golang
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
testcase: ws:// echo test client
client.go (text/x-c), 647 bytes, created by
Vincent Batts
on 2014-01-02 21:34:44 UTC
(
hide
)
Description:
testcase: ws:// echo test client
Filename:
MIME Type:
Creator:
Vincent Batts
Created:
2014-01-02 21:34:44 UTC
Size:
647 bytes
patch
obsolete
>// +build ignore > >package main > >import ( > "code.google.com/p/go.net/websocket" > "fmt" > "log" >) > >var origin = "http://localhost/" >var url = "ws://localhost:8000/echo" >//var url = "ws://go-vb.rhcloud.com:8000/" >//var url = "ws://html5rocks.websocket.org:80/echo" > >func main() { > ws, err := websocket.Dial(url, "", origin) > if err != nil { > log.Fatal(err) > } > > message := []byte("hello, world!") > _, err = ws.Write(message) > if err != nil { > log.Fatal(err) > } > fmt.Printf("Send: %s\n", message) > > var msg = make([]byte, 512) > _, err = ws.Read(msg) > if err != nil { > log.Fatal(err) > } > fmt.Printf("Receive: %s\n", msg) > fmt.Println(ws.Config()) >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1015610
:
844745
| 844746 |
853036