1.0.4 • Published 11 months ago
@tecabel/frame-messages v1.0.4
@tecabel/frame-messages
This is a simple library to send and receive web messages in js and typescript projects
Usage
import {listenMessage , postMessage} from '@tecabel/frame-messages'
listenMessage<T>('http://localhost:3000',(value: T | null) => {
// your code here
})
postMessage('http://localhost:3000', messageContent: 'hi!')