Cookies

setCookie

Writes a cookie to the cookie store.

cable_ready["MyChannel"].set_cookie(
cookie: "string" # "example=value; path=/; expires=Sat, 07 Mar 2020 16:19:19 GMT"
)