FAQ
Here is how Dial is requested:

// A WebSocket server address.
// A WebSocket server protocol.
// A Websocket client origin.
//func Dial(url_, protocol, *origin* string) (ws *Conn, err error)

=====================================================
Client
=====================================================
var serverAddr string = "wss://www.MyWebAddress.net:443/wsServerStr"
var clientAddr string = "http://localhost/"

ws, err := websocket.*Dial*(serverAddr, "", *clientAddr*)
=====================================================

I can get ClientIP address on the server:
=====================================================
Server
=====================================================
clientIP := ws.Request().RemoteAddr
=====================================================

How to get *origin **clientAddr* sent with *Dial* from the client?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 2, '13 at 2:29a
activeOct 2, '13 at 2:29a
posts1
users1
websitegolang.org

1 user in discussion

Mobiledatabooks: 1 post

People

Translate

site design / logo © 2022 Grokbase