refactor(console, terminal) add Socket