Skip to content

Instantly share code, notes, and snippets.

View sumnulu's full-sized avatar

Ilgaz Şumnulu sumnulu

View GitHub Profile

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@sumnulu
sumnulu / BootStrap.groovy
Created November 5, 2012 15:04 — forked from pledbrook/BootStrap.groovy
Embed Vert.x in Grails
import org.vertx.groovy.core.Vertx
class BootStrap {
def init = { servletContext ->
def vertx = Vertx.newVertx()
def httpServer = vertx.createHttpServer()
vertx.createSockJSServer(httpServer).installApp(prefix: '/events') { sock ->
sock.dataHandler { buff ->
sock << buff