servicestackapps / chat Goto Github PK
View Code? Open in Web Editor NEWSingle Page Chat App showcasing ServiceStack's Server Sent Events features
Single Page Chat App showcasing ServiceStack's Server Sent Events features
I can't compile the project.
Error: AppHost.secrets.cs was not found
"Live Chat Example" link is broken on https://github.com/ServiceStackApps/Chat and https://github.com/ServiceStack/ServiceStack/wiki/Server-Events.
I'm not sure excatly what page it was supposed to point to.
The messages are not encoded.
This message shows popoup to all users :
<script>alert('e')</script>
Would be nice to get this sample to work in IE out of the gates (even IE8+). I created a fork and was able to do it pretty quickly, by doing the following (even though these are loosely covered in ServiceStack docs, it might be nice to get the sample running without issues for everyone). Most of my clients require IE support, and many still require IE8+.
Could even just create a separate page in the demo (like default_ie8plus.cshtml).
Granted I was only using IE8, IE9, IE10 emulation in my tests, but without supporting these browsers, I would not have been able to convince my client that using this was a viable option, and that would have been a shame :-)
Here's what I did:
Added bower and installed the following libraries:
Added the script tags to the default.cshtml in the following order
<link href="/default.css" rel="stylesheet" />
<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<!-- need the following item for lte IE9 -->
<script src="/bower_components/console-polyfill/index.js"></script>
<!-- need the following item for lte IE8 -->
<script src="/bower_components/es5-shim/es5-shim.min.js"></script>
<script src="/bower_components/event-source-polyfill/eventsource.min.js"></script>
<script src="/js/ss-utils.js"></script>
<urlCompression doStaticCompression="true" doDynamicCompression="false" />
I believe that's it ... If you prefer to keep this out of the code-base, then maybe linking to a blog post with a working solution, or to a doc. Anyway, just a thought, feel free to close the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.