iris/_examples/websocket
dependabot[bot] f5d7da5d75
Bump golang.org/x/net from 0.4.0 to 0.7.0 in /_examples/websocket/basic (#2072)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-19 21:13:05 +02:00
..
basic Bump golang.org/x/net from 0.4.0 to 0.7.0 in /_examples/websocket/basic (#2072) 2023-02-19 21:13:05 +02:00
gorilla-filewatch Bump golang.org/x/net in /_examples/websocket/gorilla-filewatch (#2066) 2023-02-19 21:11:44 +02:00
native-messages builtin html template functions changes 2022-12-13 01:37:15 +02:00
online-visitors minor: example improvement 2023-01-25 05:50:42 +02:00
secure update websocket examples - keep neffos and use the iris/websocket as helper only 2019-07-01 18:52:17 +03:00
socketio Bump golang.org/x/net in /_examples/websocket/socketio (#2063) 2023-02-19 21:11:15 +02:00
README.md add the new neffos StackExchange feature to the type aliases and shortcuts of the websocket subpackage and auto-enable debug mode on websocket MVC application when iris logger's level is set to debug 2019-07-11 12:59:11 +03:00

Websocket

WebSocket is a protocol that enables two-way persistent communication channels over TCP connections. It is used for applications such as chat, stock tickers, games, anywhere you want real-time functionality in a web application.

Iris websocket library is now merged with the neffos real-time framework and Iris-specific helpers and type aliases live on the iris/websocket subpackage. Learn neffos from its wiki.

Helpers and type aliases improves your code speed when writing a websocket module. For example, instead of importing both kataras/iris/websocket - in order to use its websocket.Handler - and github.com/kataras/neffos - to create a new websocket server neffos.New - you can use the websocket.New instead, another example is the neffos.Conn which can be declared as websocket.Conn.

All neffos and its subpackage's types and package-level functions exist as type aliases on the kataras/iris/websocket package too, there are too many of those and there is no need to write each one of those here, some common types:

  • github.com/kataras/neffos/#Conn -> github.com/kataras/iris/websocket/#Conn
  • github.com/kataras/neffos/gorilla/#DefaultUpgrader -> github.com/kataras/iris/websocket/#DefaultGorillaUpgrader
  • github.com/kataras/neffos/stackexchange/redis/#NewStackExchange -> github.com/kataras/iris/websocket/#NewRedisStackExchange