Event Store blog - Posts in Code examples - Page 1 of 1

Applications and IEvent


We had a question on Twitter about whether events stored in the Event Store have to implement any interfaces or inherit from a base class or similar. Fundamentally, the Event Store doesn’t care what you store inside it - you are responsible for serialization. The remainder of this post talks about the TCP Client API. The reading methods on EventStoreConnection return an EventStreamSlice object, which contains an array of RecordedEvent objects (which are also used...

Using JS projections from the browser


One of the main use cases we had for using Javascript as our query language was the the same code could be hosted in a browser. You can see a more in depth example of this in the “Event store chat example” that is reachable from the main screen in the management console. Sometimes code speaks 1000 words. <!doctype html> <html> <head> <title>Simple Chat</title> <script src="lib/jquery/jquery-1.8.0.min.js"></script> <script src="js/projections/v8/Prelude/Modules.js"> </script> <script src="js/projections/v8/Prelude/Projections.js"> </script> <script src="js/projections/es.projections.environment.js"> </script>...