Gerasimos (Makis) Maropoulos
69171e844d
add the DefaultIDGenerator as variable to the iris neffos helpers
...
Former-commit-id: db0f6361823c99969ccd6da06db560177c45dade
2019-07-01 18:50:13 +03:00
Gerasimos (Makis) Maropoulos
7e6dc3240a
nothing tremendous here
...
Former-commit-id: 9ae6a00400750b9769383ea28bb00f2b202fb79e
2019-06-27 16:28:44 +03:00
Gerasimos (Makis) Maropoulos
33028f900d
update the nantive-messages(only) example to the latest websocket (minimum changes, the idea is the same) and misc
...
Former-commit-id: 9598319bc13e8a383114c37f4da84f337ab47b22
2019-06-25 22:10:10 +03:00
Gerasimos (Makis) Maropoulos
164f24dec4
add more websocket helpers from neffos project
...
Former-commit-id: fcb9ec46849fd745fe0f62524d9b85067a334048
2019-06-15 14:07:35 +03:00
Gerasimos (Makis) Maropoulos
e10fada695
updates for neffos and re-push the fix of the request path with uri unescaped codes
...
Former-commit-id: fda1edb3e8dfc538da541070366f5f8f997bf367
2019-06-06 23:05:17 +03:00
Gerasimos (Makis) Maropoulos
e19a519c6e
add neffos.Object
based on the latest neffos API and update the go.mod for neffos
...
Former-commit-id: 47836caf61d3c951f1599714a4310bbdef1c87b7
2019-06-03 12:06:18 +03:00
Gerasimos (Makis) Maropoulos
04bc21dd3b
Add the new websocket package (which is just a helper for kataras/neffos) and an example for go server, client, browser client and nodejs client. Add a .fossa.yml and the generated NOTICE file for 3rd-party libs. Update go.mod, go.sum. Update the vendor folder for pongo2 to its latest master as well
...
Former-commit-id: 89c05079415977d65e7328a1eb8a1c602d76f78a
2019-06-02 17:49:45 +03:00
Gerasimos (Makis) Maropoulos
444a4a0363
remove websocket's connection's temp storage, as it was deprecated for quite long time (we have access to Context().Values() now)
...
Former-commit-id: 26dfa47c374646590831d62fa1fc1dc02d8705fc
2019-02-23 18:35:29 +02:00
Gerasimos (Makis) Maropoulos
ddec78af0a
add Context.ResponseWriter.IsHijacked
to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
...
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
bda36145e5
some cleanup, and remove the test 'testwebocket2' package at all; A lower-level fast websocket impl based on gobwas/ws will be published on a different repo, it is a WIP
...
Former-commit-id: b680974c593196ce20865ed12778929ced6afea1
2019-02-22 21:24:10 +02:00
Gerasimos (Makis) Maropoulos
c477251d1f
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
2019-02-19 22:49:16 +02:00
Gerasimos (Makis) Maropoulos
65c1fbf7f2
websocket: from 1k to 100k on a simple raspeberry pi 3 model b by using a bit lower level of the new ws lib api and restore the previous sync.Map for server's live connections, relative: https://github.com/kataras/iris/issues/1178
...
Former-commit-id: 40da148afb66a42d47285efce324269d66ed3b0e
2019-02-18 04:42:57 +02:00
Gerasimos (Makis) Maropoulos
9cfaff07d6
add support for mvc and hero dynamic dependencies to understand the error type as a second output value as requested at: https://github.com/kataras/iris/issues/1187
...
Former-commit-id: 49e29c06aaaa22743354981342c29fc9d5953d0e
2019-02-16 00:42:26 +02:00
Gerasimos (Makis) Maropoulos
07994adabb
add websocket client stress test, passed and update the vendors (this commit fixes the https://github.com/kataras/iris/issues/1178 and https://github.com/kataras/iris/issues/1173 )
...
Former-commit-id: 74ccd8f4bf60a71f1eb0e34149a6f19de95a9148
2019-02-14 03:28:41 +02:00
Gerasimos (Makis) Maropoulos
946c100f7d
use the same connection structure for both client and server-side connections interfaces, the 'Connection' interface could be changed to 'ServerConn' but this would produce breaking naming change to the iris users, so keep it as it's.
...
Former-commit-id: 3440871b368709e33d2d2a5080c66f7ad9338970
2019-02-10 17:16:43 +02:00
Gerasimos (Makis) Maropoulos
280872fd59
add iris websocket client side for Go and a simple chat example
...
Former-commit-id: af1c555b6b092a3d0484fee2e200fd8767d7239e
2019-02-09 04:28:00 +02:00
Gerasimos (Makis) Maropoulos
680b5a0923
websocket: replace sync.Map with custom map[string]*connection. Add translate template function example. Fix ctx.HandlerName() does not return the end-dev-defined current route's name, this will give better warnings when using MVC in a wrong way
...
Former-commit-id: 38fda8a20da9bc7665cdd209b7b367c1337dbd94
2019-01-25 23:47:31 +02:00
Gerasimos (Makis) Maropoulos
22782bbefe
examples: update the cors example to be easier for beginners
...
And update the pug view engine's vendor jade template engine to yesterday version 1 (tested and worked) to fix https://github.com/kataras/iris/issues/1125
Former-commit-id: 0ea7a8dd97ab13e5ecf984c379234cc671f5d84e
2018-11-06 04:06:50 +02:00
Gerasimos (Makis) Maropoulos
be32418bc1
Update to version 11.0.1. Feature request implemented: https://github.com/kataras/iris/issues/1113
...
Former-commit-id: 0ce38dbacc2458fe327fa4401fdde1e69c8aacb0
2018-10-28 01:19:22 +03:00
Gerasimos (Makis) Maropoulos
3962710d3d
Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
...
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Eryx
1f1dfcca1c
Fix panic error in concurrent calling with websocket.Connection.Emit()
...
Former-commit-id: 4c5cc222e9a43b18a86adb35bfafe4a278fd880e
2018-10-16 13:25:28 +08:00
Eryx
d2c3b90bc4
Fix panic error in concurrent calling with websocket.Connection.Emit()
...
Former-commit-id: b5d0ecd61547a297c320867af0a8abf208f0f743
2018-10-16 13:05:14 +08:00
Gerasimos (Makis) Maropoulos
cc679280ff
fast-fix from prev commit
...
Former-commit-id: 3e1160018eb25cd844785fb951af0d31776df04c
2018-08-08 13:29:01 +03:00
Gerasimos (Makis) Maropoulos
51e1b44c72
websocket: use of sync.Map
...
Former-commit-id: 8ecb1e6f70380195ce916d4dfc3fe8d41c851995
2018-08-08 13:22:00 +03:00
Dibyendu Das
f4dd07ad00
Minified the client.js using UglifyJs
...
$ npm install uglify-js -g
$ uglifyjs --compress --mangle -o client.min.js client.js
Former-commit-id: 078ce0534f845c018fb66767c0aec17dd1406160
2018-07-30 14:27:28 +05:30
Gerasimos (Makis) Maropoulos
bc4ca99cf9
websocket: dupl the client js lib for cdns as requested by: https://github.com/kataras/iris/issues/1047
...
Former-commit-id: c76a6cf70ce11ac1beeafb9b80559f2bf0274b9f
2018-07-25 04:46:31 +03:00
Gerasimos Maropoulos
0db2afea93
websocket: fix a bug on emit on specific room when it doesn't exist it sends to all connections caused by a third-party contributor's PR...
...
Former-commit-id: de6fddadd7cef8537ad1d1aff1acd991e4cf99cf
2018-05-02 17:47:14 +03:00
Gerasimos Maropoulos
087c8c8b3a
Update to (minor) version 10.6.2. Added: websocket/Connection#OnPong
and websocket/Connection#OnError(func(error))
instead of func(string)
relative issues: https://github.com/kataras/iris/pull/988 and https://github.com/kataras/iris/issues/987 respectfully.
...
Former-commit-id: 76d4fda4ab4f34f8a251c8c2d5bb1ae7c3ef7047
2018-05-02 06:40:18 +03:00
Kirguir
655a19ea74
Websocket: added OnPong to Connection #986
...
see issue #986
Former-commit-id: 964d393d40fc7e64a8bf02eae08d97fd5f847483
2018-04-30 14:27:28 +03:00
Gerasimos Maropoulos
5dc8cbcefc
websocket: expose Connection#Write in favor of https://github.com/kataras/iris/issues/976
...
Former-commit-id: 74cba9b2bfb4d5cc874eba3330dc9c7bad2ffac5
2018-04-25 13:40:40 +03:00
Gerasimos Maropoulos
fc0f27c4fc
Do not create the global configuration in homedir by-default, as, correctly, requested on chat. Use iris.WithGlobalConfiguration with a pre-defined iris.yml file on your home directory, existing users will not have any issues, new one will have to create the file before
...
Former-commit-id: 033f7e96693b13f87b44b445ed166328fea6e0a0
2018-03-27 09:59:29 +03:00
Alexey McSakoff
6c9e3c69ff
Handle non-WS connections in WS handler with no panic
...
Former-commit-id: f56665ee444bd16258edf6a34606efc132eced5a
2018-03-10 19:31:40 +04:00
Gerasimos (Makis) Maropoulos
e523d08cb1
add websocket/Connection#IsJoined as requested at https://github.com/kataras/iris/issues/895
...
Former-commit-id: 560fc8b911a9c1352be577d2f7bebd1fac7b5d4a
2018-02-03 18:53:39 +02:00
Gerasimos (Makis) Maropoulos
ade6809fc1
a simple simplify came from the previous PR that merged
...
Former-commit-id: 509d0ac8164562b655eebf0fe1fc8e166d8f0464
2018-01-05 08:22:18 +02:00
Akira Ho
5157ed17a6
websocket disconnect/leave-all-rooms should delete empty rooms as well otherwise rooms hash goes ever growing
...
Former-commit-id: 7f228be67cab79fc34f4a5a6a8b41b6ba8330186
2018-01-05 09:30:21 +08:00
Gerasimos (Makis) Maropoulos
2e9cf2def7
linting, 99% is not fine let's do it 100%
...
Former-commit-id: 45d246e8d14deb7c238e01e6a2b1648a9ddf39c0
2018-01-04 16:34:04 +02:00
Gerasimos (Makis) Maropoulos
05334560f3
add a code snippet as a very simplistic overview and update the license dates from 2017 to 2017-2018
...
Former-commit-id: 1114ea5a38d0f8cf71c808f9603acf05419ecd4d
2017-12-31 06:45:12 +02:00
Gerasimos (Makis) Maropoulos
969aaab4f6
some comment grammar fixes? need help here.
...
Former-commit-id: 5695e4c6456b052fae45de1fa6724fae39ceac3e
2017-12-27 17:09:47 +02:00
Gerasimos (Makis) Maropoulos
2042fddb66
Another new feature: websocket controller, for real
...
Former-commit-id: c1a59b86733e890709b52446e22427a17d87f5fc
2017-12-20 17:56:28 +02:00
Gerson Alexander Pardo Gamez
80b86136f4
Websocket: added OnPing to Connection
...
see issue #825
Former-commit-id: c7c97d40e352f4e550ea96eb482e71c3c50c8c09
2017-12-01 17:48:37 -05:00
kataras
15feaf0237
Update to version 8.5.5 | Read HISTORY.md
...
Former-commit-id: dced7d472edabbab4f80c76051f13261928a8dea
2017-11-02 05:54:33 +02:00
Bill Q
55bf9c1b7a
Update AUTHORS
...
Former-commit-id: 97fff38993685c8e5f812e5ecff80a342d6d513b
2017-10-24 16:26:08 +03:00
Gerasimos (Makis) Maropoulos
1cd9b70791
Some fixes to the previous edit
...
Former-commit-id: da5219084b60d820ced713feff837e3964fa1fb0
2017-10-22 00:41:04 +03:00
Gerasimos (Makis) Maropoulos
9061d3d695
Some changes for the benefit of performance for https://github.com/kataras/iris/pull/795
...
Former-commit-id: 4b2896381c78f35daaaf85d694c15e1cbdb78ac4
2017-10-22 00:33:05 +03:00
Gerson Alexander Pardo Gamez
6f1d1d2fea
Websocket: added GetTotalConnections, GetConnections and GetConnection
...
Former-commit-id: fddddcdebd2a72ca082223bd29638a13ae6c0343
2017-10-21 15:44:36 -05:00
Gerson Alexander Pardo Gamez
732c9f70ed
Websocket: replaced time.Ticker with sleep for avoid memory leak
...
Former-commit-id: f17706649faebe3020792e31de877c724be41057
2017-10-19 22:06:31 -05:00
Gerson Alexander Pardo Gamez
dcde9d05a2
Websocket: fixed memory leak on startPinger
...
Former-commit-id: fe6162dd8914398e1333850950e1898e89e75005
2017-10-16 17:54:17 -05:00
Gerson Alexander Pardo Gamez
9da7bdb27d
Fixed fireOnLeave when connection is already closed
...
Former-commit-id: 664afda8f052b9c7596f82d66cc4faeb6e09148d
2017-10-11 12:34:01 -05:00
Gerasimos (Makis) Maropoulos
99c6d3546e
Add "release" badge at README.md
...
Former-commit-id: 0344c998a68284bb0310da4b0131fdc1aec7c64a
2017-09-17 14:43:35 +03:00
hiveminded
e23f821341
fix websocket some times tries to emit to a disconnected client
...
Former-commit-id: 026798e6bc587c902bfc9f92281aced406d628a5
2017-08-09 13:31:56 +03:00