# Sample sample code for tcp&websocket ## Usage ### Compile ```shell script # build $make # see usage $./sample ``` ### Test TCP ```shell script # first console window $./sample tcpserver # then open another console window $./sample tcpclient ``` ### Test Websocket ```shell script # first console window $./sample wsserver # then open another console window $./sample wsclient ``` Notice: TCP using the same port as Websocket server.