Commit Graph

62 Commits

Author SHA1 Message Date
ricky
d8560042e7 fix websocket chat examples
.
2022-11-17 08:29:58 -06:00
Steve Mao
e6d2769408
update the examples to show how to cleanup resources once user disconnects 2021-10-02 17:22:58 +10:00
Steve Mao
4ae578a1a1
add multiple channels example 2021-09-29 23:12:16 +10:00
Michael Snoyman
c59993ff28
Change cabal-version syntax 2021-04-03 22:37:00 +03:00
Michael Snoyman
a770fd2b63
Appease Hackage 2020-11-05 10:50:38 +02:00
David Burkett
c00d1e1aa8 Use forkPingThread if websockets is less than 0.12.6.0 2020-11-04 21:46:00 -05:00
David Burkett
da09fdc69a Updated the Changelog.md for yesod-websockets to include comment and link for PR 1700 2020-11-04 20:43:41 -05:00
David Burkett
ead5d3388f Remove the use of forkPingThread in Yesod.WebSockets and replaced it with withPingThread 2020-11-04 20:34:37 -05:00
Michael Snoyman
804b114d91
Drop LTS 9 2020-01-07 13:36:58 +02:00
patrick brisbin
e470f1a3f8 Version bump 2019-05-21 12:10:03 -04:00
patrick brisbin
096049e0e3 sendClose and sendPing act in m ()
The previous type signature was attempting to read the Connection off of
the m in WebSocketsT m, rather than the WebSocketsT itself. This was
likely a typo that happened to type-check. The types for these now align
with the rest of the API, read the Connection off of WebSocketsT, and
make no demands of the m other than MonadIO.

Fixes #1599.
2019-05-21 12:10:03 -04:00
Steve Hart
e1a33248b0 Eliminate deprecation warnings when building websockets sample.hs 2019-01-07 20:12:12 -05:00
Michael Snoyman
67c223d76b
Minor cabal file improvements 2018-08-20 10:11:42 +03:00
ncaq
708648798e deleted: unneed cabal build-depends by weeder
[weeder: Detect dead code](https://hackage.haskell.org/package/weeder)

deleted depends is

* mime-mail
* wai-eventsource

I sort build-depends, because duplicate depend some exist, to sort is detect to easy.
2018-06-09 13:15:21 +09:00
Michael Snoyman
63006970c6
Remove duplicate description field 2018-02-20 13:51:36 +02:00
Michael Snoyman
3956110876
Fix yesod-websockets 2018-01-15 21:07:54 +02:00
Michael Snoyman
25acc5799b
Version bumps and changelog updates 2018-01-15 15:57:36 +02:00
Michael Snoyman
a16e75249a
More moving over to unliftio 2017-12-31 09:20:02 +02:00
Divam
85496411f2 Fix yesod-websockets/sample.hs example 2017-03-15 11:54:45 +09:00
Michael Snoyman
cdc6c8ae04 Version bumps/changelog updates 2017-02-08 11:20:31 +02:00
Michael Snoyman
aefd074efa Cleanup GHC 8 redundant constraints 2017-02-05 13:35:12 +02:00
Marcin Tolysz
e7e2caeacf yesod-websockets: add webSocketsOptions webSocketsOptionsWith 2017-01-19 11:13:34 +00:00
Michael Snoyman
a337bf6d58 websockets 0.10 support 2016-11-30 06:42:15 +02:00
Christopher Reichert
ae0608bc21 Bump yesod-websockets version. 2015-08-28 19:30:32 -05:00
John Lenz
5443b38525 yesod-websockets: accept websocket requests with a subprotocol
The websockets library allows passing an AcceptRequest when
upgrading the request to websockets, which at the moment only
contains the subprotocol to use with the client.  The list of
subprotocols that the client is prepared to speak is in the
RequestHead.
2015-08-28 16:34:09 -05:00
Michael Snoyman
8024173e05 Fix warning 2015-07-23 06:24:58 +03:00
Michael Snoyman
8893393ec9 Version bump 2015-07-23 06:18:37 +03:00
Marcin Tolysz
1420f627e3 Update WebSockets.hs
Add `send and  receive` `DataMessageE` so the whole WS API is mirrored
2015-07-19 23:49:35 +01:00
Michael Snoyman
9cb48dfa7a Merge branch 'master' of github.com:yesodweb/yesod 2015-07-20 01:25:17 +03:00
Michael Snoyman
beabde14bf Update since/changelog #772 2015-07-20 01:25:09 +03:00
Michael Snoyman
704b904e1f Merge branch 'master' of https://github.com/tolysz/yesod
Conflicts:
	yesod-websockets/yesod-websockets.cabal
2015-07-20 01:23:59 +03:00
Christopher Reichert
118d33d3b4 Fix compilation error in yesod-websockets/sample.hs. 2015-07-15 11:28:07 -05:00
Michael Snoyman
bed6dafce8 Doc link updates 2014-12-21 15:23:52 +02:00
Christopher Reichert
ae6a03d36f Update README in yesod-websockets to address the timeout issue. 2014-12-15 21:59:57 -06:00
Christopher Reichert
c98fbb0596 Depend on websockets >= 0.9 in yesod-websockets.cabal.
The forkPingThread function was added in version 0.9 of websockets.

Complimentary fix to #889.
2014-12-14 16:11:25 -06:00
Christopher Reichert
e7a5b48898 Bump yesod-websockets version. 2014-12-14 14:13:06 -06:00
Christopher Reichert
595ee70386 Keep client connections alive using Network.WebSocket.forkPingThread. 2014-12-14 14:06:44 -06:00
dschalk
9574404153 Create README.md 2014-10-07 10:34:31 -04:00
dschalk
8caa9f087b Create chat-with-timeout-control.hs 2014-10-06 20:56:08 -04:00
Michael Snoyman
def48d8a45 Version bumps for 1.4 release 2014-09-21 11:41:37 +03:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
tolysz
a4894d54af remove not needed extension 2014-07-14 15:37:46 +01:00
tolysz
8a8bfa7ec7 correct the wrapper 2014-07-14 15:10:50 +01:00
tolysz
acd2bb61e4 add enclosed-exceptions 2014-07-14 15:04:17 +01:00
tolysz
89cd52ad10 Rewrite to Either SomeException a
Rewrite to use suggested `enclosed-exceptions` package and `Either` pattern for capturing exceptions
2014-07-14 15:02:32 +01:00
tolysz
038c94d1cf copy and paste 2014-07-14 12:41:37 +01:00
tolysz
56da66d937 add missing ScopedTypeVariables 2014-07-14 12:33:07 +01:00
tolysz
4a6f7045f4 copy and paste typo 2014-07-14 12:22:44 +01:00
tolysz
65c0bd5c64 fix exports 2014-07-14 12:14:01 +01:00
tolysz
50728f6b59 bump verision 2014-07-14 12:09:47 +01:00