Skip to content

Instantly share code, notes, and snippets.

View billyyarosh's full-sized avatar

Billy Yarosh billyyarosh

View GitHub Profile
@billyyarosh
billyyarosh / atmo_socket_request.js
Created May 15, 2012 21:07
The gist of creating a websocket connection
var request = new $.atmosphere.AtmosphereRequest();
request.transport = 'websocket';
request.url = "<c:url value='/twitter/concurrency'/>";
request.contentType = "application/json";
request.fallbackTransport = 'streaming';
request.onMessage = function(response){
buildTemplate(response);
};
@billyyarosh
billyyarosh / atmo-context-tomcat.xml
Created May 15, 2012 21:03
Required atmosphere context.xml file for Tomcat
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Loader delegate="true"/>
</Context>
@billyyarosh
billyyarosh / atmo_maven_dependency_runtime
Created May 9, 2012 01:10
Atmosphere Maven Dependency
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
<version>0.9.5</version>
</dependency>