mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 02:47:04 +00:00
improve client test, I think we are OK, both gorilla(websocket) and ws(websocket2) have the same API, it's time to combine them but first let's give a lower level of api available for users if they want to manage the routines by theirselves (i.e on unix they can use netpolls manually)
Former-commit-id: 3209a7490939bce913732c1375190b0771ba63ae
This commit is contained in:
@@ -21,8 +21,7 @@ $ go run main.go
|
||||
>> hi!
|
||||
*/
|
||||
func main() {
|
||||
// `websocket.DialContext` is also available.
|
||||
c, err := websocket.Dial(url, websocket.ConnectionConfig{})
|
||||
c, err := websocket.Dial(nil, url, websocket.ConnectionConfig{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user