Skip to content
Permalink
Browse files

An ameba inspection

  • Loading branch information...
y2k2mt committed Nov 12, 2018
1 parent 0691158 commit ea64f967cf8d9f51884f50c640e8f9eb7165a512
Showing with 14 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +6 −0 shard.lock
  3. +5 −0 shard.yml
  4. +1 −1 src/sse.cr
@@ -1 +1,3 @@
node_modules
bin/
lib/
@@ -0,0 +1,6 @@
version: 1.0
shards:
ameba:
github: veelenga/ameba
version: 0.8.1

@@ -9,4 +9,9 @@ authors:
description: |
A crystal shard for server-sent-events
development_dependencies:
ameba:
github: veelenga/ameba
version: 0.8.1

license: MIT
@@ -6,7 +6,7 @@ module HTTP::ServerSentEvents
record EventMessage, event : String, datas : Array(String), id : String, retry : Int64

def initialize(host : String, path : String, port : Int32, tls = false, headers : HTTP::Headers = HTTP::Headers.new)
shceme = tls ? "https" : "http"
scheme = tls ? "https" : "http"
initialize(URI.new(scheme: scheme, host: host, path: path, port: port), headers)
end

0 comments on commit ea64f96

Please sign in to comment.
You can’t perform that action at this time.