Emojicode Documentation 0.8
Guides Language Reference Package Index

Class ğŸ“ž

ğŸ“ž represents a socket for communication between client and server.

Initializers

🆕

🆕 🆕 🚨⛈ host 🔡 socket 🔢 

Opens a socket to address. address can be a host name which will be resolved.

Methods

💬❗️

❗️ 💬 message 📇 ➡️ 🍬⛈

Sends the given data to the peer. Returns true if the data was successfully sent or false on error.

🚪❗️

❗️ 🚪 

Closes this socket.

👂❗️

❗️ 👂 bytes 🔢 ➡️ 🚨⛈📇

Tries to read up to bytes bytes from the socket. An error is returned on error or if the socket was closed by the peer.