Jump to content

ASP code in HTML5 Server-Sent Events needs correction


ir.net

Recommended Posts

It seams that "Code in ASP (VB) (demo_sse.asp)" block needs correction in the article HTML5 Server-Sent Events.

Original string does not return data to client browser:

Response.Write("data: The server time is: " & now())

Line feeds ("\n\n")are missing. This works:

Response.Write("data: The server time is: " & now() & vbLF & vbLF)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...