Improved sockjs allocator