forked from https://github.com/uhyo/socketchat