Arduino mega as a websocket host

Hey! How can i set an Arduino mega as a websocket host?

How do you plan to connect your board to the net?

I have a mega 2560 with an ethernet shield.

Does your shield have a name?
If so, you can try your luck with google "shield_name + websockets"