Skip to content

Commit 002358d

Browse files
Fennygitbook-bot
authored andcommitted
GitBook: [master] 6 pages modified
1 parent a93bfb2 commit 002358d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func main() {
309309

310310
## Template
311311

312-
Fiber supports a websocket upgrade middleware. The `*Conn` struct has all the functionality from the gorilla/websocket library.
312+
By default Fiber comes with the [**default HTML template**](https://golang.org/pkg/html/template/) engine, but this middleware contains third party rendering engines.
313313

314314
**Installation**
315315

@@ -369,7 +369,7 @@ func main() {
369369

370370
## WebSocket
371371

372-
Fiber supports a websocket upgrade middleware. The `*Conn` struct has all the functionality from the gorilla/websocket library.
372+
Fiber supports a websocket upgrade middleware. The `*Conn` struct has all the functionality from the [**gorilla/websocket**](https://github.com/gorilla/websocket) library.
373373

374374
**Installation**
375375

@@ -414,7 +414,7 @@ func main() {
414414

415415
app.Get("/ws", websocket.New(func(c *websocket.Conn) {
416416
fmt.Println(c.Locals("Hello")) // "World"
417-
// Websocket stuff
417+
// Websocket logic...
418418
for {
419419
mt, msg, err := c.ReadMessage()
420420
if err != nil {

0 commit comments

Comments
 (0)