Skip to content

Instantly share code, notes, and snippets.

@BrunoMVPCosta
BrunoMVPCosta / NettyTransport.java
Created October 27, 2018 20:29
Reconnneting with Netty
package com.netty.echo.transport;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import com.netty.echo.net.Address;
scope "/", Rumbl do
pipe_through :browser # Use the default browser stack
get "/", PageController, :index
resources "/users", UserController, only: [:index, :show, :new, :create]
resources "/sessions", SessionController, only: [:new, :create, :delete]
end
scope "/manage", Rumbl do
pipe_through [:browser, :authenticate_user]
31.13.24.0/21
31.13.64.0/18
31.13.64.0/19
31.13.64.0/24
31.13.65.0/24
31.13.66.0/24
31.13.68.0/24
31.13.69.0/24
31.13.70.0/24
31.13.71.0/24
{
"id" : "1",
"descriptions":
{
"en-US": "american english",
"en-GB": "abasd",
"pt-BR": "brazil"
},
"prices":
{