Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.276 kb
open WebSocket.Dsl
let echo =
server begin fun s ->
s#ws "/echo" begin fun _ ws ->
while true do
ws#send ws#read
done
end;
s#get "/echo.html" begin fun _ ->
html "echo.html"
end;
s#get "/hi" begin fun _ ->
"hello"
end
end
Jump to Line
Something went wrong with that request. Please try again.