mirror of
https://github.com/kataras/iris.git
synced 2026-01-11 05:55:57 +00:00
misspell fix
Former-commit-id: a6e81fd308a1f741c16d24793778d4046a172b35
This commit is contained in:
@@ -1016,7 +1016,7 @@ func main() {
|
||||
ctx.Render("client.html", clientPage{"Client Page", ctx.Host()})
|
||||
})
|
||||
|
||||
// the path which the websocket client should listen/registed to ->
|
||||
// the path which the websocket client should listen/registered to ->
|
||||
iris.Config.Websocket.Endpoint = "/my_endpoint"
|
||||
// by-default all origins are accepted, you can change this behavior by setting:
|
||||
// iris.Config.Websocket.CheckOrigin
|
||||
@@ -1100,7 +1100,7 @@ func main() {
|
||||
app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates
|
||||
|
||||
ws := websocket.New(websocket.Config{
|
||||
// the path which the websocket client should listen/registed to,
|
||||
// the path which the websocket client should listen/registered to,
|
||||
Endpoint: "/my_endpoint",
|
||||
// the client-side javascript static file path
|
||||
// which will be served by Iris.
|
||||
|
||||
Reference in New Issue
Block a user