net.socket

MJS / AC Piece API / network / done
socket(receive)

Hook into the piece's socket server with a receive callback.

Parameters

Name Type Required Description
receive function yes Callback for socket events/messages.

Returns

object | void

Examples

No explicit examples yet.

Open playground to experiment live.

Runtime Notes

No additional runtime notes yet.

Details

No additional details yet.

Live Preview

Embedded AC preview