Commit Graph

90 Commits

Author SHA1 Message Date
Ola fdfd3d60e4 Update changelog. 2022-09-13 16:37:43 +02:00
parkerzhu aaf226f3d1 add local addr and remote addr function to session 2022-09-13 16:18:15 +02:00
parkerzhu fd663c8c45 add local addr and remote addr for session 2022-09-13 16:17:33 +02:00
Ola b10d057bd5 Use constant error for Sessions 2022-09-13 16:08:13 +02:00
gabstv f27c82fac5 retrieve all sessions 2022-09-13 16:05:46 +02:00
Ola 964c1f0660 Constant errors 2022-09-13 15:51:28 +02:00
Ola 5dfe76a8fb Create Go module 2022-09-13 15:06:52 +02:00
lesismal e21886f3a7 Fix concurrent panic 2021-05-20 03:01:17 +08:00
Ola Holmström 7bd65910e5 Merge pull request #36 from yoki123/patch-1
Support for the subprotocol
2018-02-27 14:42:53 +01:00
Yoki dfc3455206 Support for the subprotocol 2018-02-05 10:37:42 +08:00
Ola Holmström d521390733 Fix HandleSentMessageBinary, close #32. 2017-05-18 12:55:55 +02:00
Ola Holmström 339bebc930 Merge branch 'patch-2' of https://github.com/robbiet480/melody 2017-04-13 17:19:41 +02:00
Robbie Trencheny a9e9ebdfdc Remove default close handler which caused abnormal closes 2017-04-12 14:41:55 -07:00
Robbie Trencheny 8a4d4f8294 Add IsClosed method to Melody 2017-04-11 20:54:15 -07:00
Ola Holmström 647ca280c6 Update README and examples to use gopkg.in import. 2017-04-11 22:35:19 +02:00
Ola Holmström ad282d4baf Update changelog with BroadcastMultiple and allowing any origin by default. 2017-04-11 22:19:36 +02:00
Ola Holmström 041107a9df Merge branch 'patch-1' of https://github.com/robbiet480/melody 2017-04-11 22:18:42 +02:00
Ola Holmström 9d6a0c9a53 Merge branch 'allow-all-origins-by-default' of https://github.com/robbiet480/melody 2017-04-11 22:18:19 +02:00
Robbie Trencheny 8758889bd0 Update .travis.yml 2017-04-10 15:51:42 -07:00
Robbie Trencheny 60d272bb50 Allow any Origin by default. Closes #23 2017-04-10 14:32:50 -07:00
Robbie Trencheny 8617780ed8 Instead of using BroadcastFilter just loop over the slice of sessions and broadcast to each one 2017-04-10 14:29:46 -07:00
Robbie Trencheny 0ded2b7599 Add convenience function to broadcast to multiple sessions 2017-04-10 14:26:24 -07:00
Ola Holmström 3e26c38d4c Update changelog. 2017-04-09 18:15:11 +02:00
Ola Holmström 260e857d57 Merge branch 'session-isclosed' of https://github.com/robbiet480/melody into robbiet480-session-isclosed 2017-04-09 18:14:26 +02:00
Ola Holmström 5eec824519 Update changelog. 2017-04-09 18:04:56 +02:00
Ola Holmström 5fe1bff6a7 Fix typo error message. 2017-04-09 18:03:14 +02:00
Robbie Trencheny b2ece16412 Add IsClosed method to Session 2017-04-07 14:16:23 -07:00
Robbie Trencheny b5a06028d4 Golint fixes 2017-03-28 14:04:34 -07:00
Robbie Trencheny 9a70fe93ac Add closeHandler support 2017-03-28 14:00:51 -07:00
Robbie Trencheny c773bc2f72 Allow sending custom close messages 2017-03-28 13:48:20 -07:00
Ola Holmström e5f177a9d7 fix messageSentHandlerBinary initilization 2017-02-11 00:01:59 +01:00
Ola Holmström aea0b4aedf split HandleSentMessage into text and binary methods 2017-02-10 23:53:55 +01:00
Ola Holmström 6877034698 Add HandleRequestWithKeys so that session.Keys can be populated. Close #18. 2017-02-10 23:23:32 +01:00
Ola Holmström 3321ec3da7 Return error messages for some exposed methods, fix panic when connection is closed. Close #21. 2017-02-10 23:12:27 +01:00
Robbie Trencheny 7ba6d478f0 Add a handler for message successfully sent 2017-01-30 14:14:07 -08:00
Ola Holmström e39e1207dd Add 1.7 to travis and reduce number of connections in TestLen. 2017-01-20 23:28:12 +01:00
Ola Holmström 31f0503a61 Add Len() to fetch number of connected sessions. Close #16. 2017-01-20 22:59:44 +01:00
Ola Holmström c21605cc86 remove coverage 2016-12-09 23:13:14 +01:00
Ola Holmström fe23f4936d fix travis 2016-12-09 23:09:13 +01:00
Ola Holmström 8f11201a19 Store data on a per sessions basis, based on the Gin interface. 2016-12-09 22:34:36 +01:00
Ola Holmström ca5ae7e3c4 Merge branch 'master' of https://github.com/ReforgedStudios/melody into ReforgedStudios-master 2016-12-09 21:48:16 +01:00
Heikki Uljas 150502cfd6 Merge pull request #2 from huljas/generic_params
Changed session params to be generic type
2016-11-18 09:19:36 +02:00
Heikki Uljas aae1ca83fc Use generic params 2016-11-18 09:19:02 +02:00
Heikki Uljas fad38bc8b3 Changed session params to be generic type 2016-11-18 09:14:19 +02:00
Ola Holmström d1854c24f0 add echo example 2016-05-13 09:21:19 +02:00
Ola Holmström dfa17ad2ae gophers example 2016-05-13 02:18:46 +02:00
Ola Holmström 5a3ec43235 golint 2016-05-10 21:13:28 +02:00
Ola Holmström cec89bbbba remove go 1.6 from testin 2016-05-10 00:03:48 +02:00
Ola Holmström 5a123d29ef add HandlePong 2016-05-09 23:38:22 +02:00
Matt Caldwell 3fb44fab6c Use a mutex to ensure SetPongHandler atomicity 2016-05-08 20:21:27 -04:00